Last active
January 5, 2018 01:01
-
-
Save danginsburg/00850fd11348c6f9826fa669023c9c5b to your computer and use it in GitHub Desktop.
Build RADV with LLVM static libs
This file contains hidden or 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