Forked from danginsburg/Build RADV with LLVM static libs
Created
January 5, 2018 01:01
-
-
Save 0rbadvent/1e430f6bea10b86610842222a4fca6a5 to your computer and use it in GitHub Desktop.
Build RADV with LLVM static libs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was done using: | |
LLVM from padoka PPA: llvm-5.0-dev 1:5.0~svn303494-0~x~padoka0 | |
First, I needed to patch configure.ac to get the static libraries for LLVM: | |
diff --git a/configure.ac b/configure.ac | |
index 5caf316..7bf0fd9 100644 | |
--- a/configure.ac | |
+++ b/configure.ac | |
@@ -2585,7 +2585,7 @@ if test "x$enable_llvm" = xyes; then | |
dnl We need to link to llvm system libs when using static libs | |
dnl However, only llvm 3.5+ provides --system-libs | |
if test $LLVM_VERSION_MAJOR -ge 4 -o $LLVM_VERSION_MAJOR -eq 3 -a $LLVM_VERSION_MINOR -ge 5; then | |
- LLVM_LIBS="$LLVM_LIBS `$LLVM_CONFIG --system-libs`" | |
+ LLVM_LIBS="`$LLVM_CONFIG --libs --link-static` `$LLVM_CONFIG --system-libs --link-static`" | |
fi | |
fi | |
fi | |
Run autogen.sh, then: | |
./configure --prefix=/home/dang/install/radv --enable-texture-float --enable-dri3 --enable-glx-tls --with-vulkan-drivers=radeon --with-dri-drivers=radeon --with-gallium-drivers=radeonsi --with-llvm-prefix=/usr/lib/llvm-5.0 --enable-debug=no --enable-llvm-shared-libs=no | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment