Skip to content

Build shared LLVM libraries #115

Merged
merged 2 commits into from
Sep 6, 2016
Merged

Build shared LLVM libraries #115

merged 2 commits into from
Sep 6, 2016

Conversation

pmenzel
Copy link
Collaborator

@pmenzel pmenzel commented Sep 5, 2016

No description provided.

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
@donald donald merged commit 2176c79 into master Sep 6, 2016
@donald donald deleted the build-shared-llvm-libraries branch September 7, 2016 07:22
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants