Skip to content

Commit

Permalink
llvm: Build shared libraries
Browse files Browse the repository at this point in the history
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
  • Loading branch information
pmenzel committed Sep 5, 2016
1 parent c978894 commit 3ce686b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions llvm.be0
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ce686b

Please sign in to comment.