overlay/dev-java/icedtea/files/icedtea-6.1.10.4_shark_jvm_rpath.patch
2012-01-20 20:39:48 +01:00

17 lines
527 B
Diff

Author: Ralph Sennhauser <sera@gentoo.org>
The llvm libdir isn't in the default search path on Gentoo. Adding path explicitely.
diff --git a/configure.ac b/configure.ac
index 580840e..852f5a8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -444,6 +444,7 @@ if test "x${SHARK_BUILD_TRUE}" = x || test "x${ADD_SHARK_BUILD_TRUE}" = x; then
LLVM_LDFLAGS="$LLVM_LDFLAGS$flag"
fi
done
+ LLVM_LDFLAGS="$LLVM_LDFLAGS -Wl,-rpath,$($LLVM_CONFIG --libdir)"
dnl LLVM_LIBS
LIBS_SAVED=$LIBS
LDFLAGS_SAVED=$LDFLAGS