From 3ce686b13e98d477dc242aa8b4537c05fb6f16e4 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Mon, 5 Sep 2016 12:06:01 +0200 Subject: [PATCH 1/2] llvm: Build shared libraries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Mesa 3D Graphics Library 11.2.2 currently fails to build with the error below. ``` [BEE] => entering mee_configure() .. [BEE] /dev/shm/bee-root/mesalib/mesalib-11.2.2-0/source/autogen.sh --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --sysconfdir=/etc --sharedstatedir=/var --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --datarootdir=/usr/share --datadir=/usr/share --infodir=/usr/share/info --localedir=/usr/share/locale --mandir=/usr/share/man --docdir=/usr/share/doc/mesalib --exec-prefix=/usr --enable-texture-float --enable-gles1 --enable-gles2 --enable-osmesa --enable-xa --enable-gbm --enable-glx-tls --with-egl-platforms=drm,x11 --with-gallium-drivers=nouveau,r300,r600,radeonsi,svga,swrast […] configure: error: Could not find llvm shared libraries: Please make sure you have built llvm with the --enable-shared option and that your llvm libraries are installed in /usr/lib If you have installed your llvm libraries to a different directory you can use the --with-llvm-prefix= configure flag to specify this directory. NOTE: Mesa is attempting to use llvm shared libraries by default. If you do not want to build with llvm shared libraries and instead want to use llvm static libraries then add --disable-llvm-shared-libs to your configure invocation and rebuild. ``` So pass the switch to enable building shared libraries [1]. > -DBUILD_SHARED_LIBS=ON: This switch enables building all the LLVM > libraries as shared libraries instead of static. [1] http://www.linuxfromscratch.org/blfs/view/svn/general/llvm.html --- llvm.be0 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/llvm.be0 b/llvm.be0 index f57d2581c..9e23839de 100755 --- a/llvm.be0 +++ b/llvm.be0 @@ -53,9 +53,10 @@ SRCURL[0]="http://llvm.org/releases/${PKGVERSION}/llvm-${PKGVERSION}.src.tar.xz" # bee_patch "${@}" #} -#mee_configure() { -# bee_configure -#} +mee_configure() { + bee_configure \ + -DBUILD_SHARED_LIBS=ON +} #mee_build() { # bee_build From 47f16f7210b5579e97cf4cc9fc92cf8002e04aed Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Mon, 5 Sep 2016 19:49:45 +0200 Subject: [PATCH 2/2] llvm: Increment revision --- llvm.be0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm.be0 b/llvm.be0 index 9e23839de..f64ae91b7 100755 --- a/llvm.be0 +++ b/llvm.be0 @@ -1,6 +1,6 @@ #!/usr/bin/env beesh -# BEE_VERSION llvm-3.8.1-0 +# BEE_VERSION llvm-3.8.1-1 ## this file was created by bee init and should be executed to build a ## bee-package. (Additional hints are located at the end of this file.)