osxcross/patches/cctools-ld64-rpath.patch

30 lines
971 B
Diff
Raw Normal View History

--- configure
+++ configure
2015-02-24 21:19:27 +01:00
@@ -16789,7 +16789,6 @@
LTO_LIB="-L${LLVM_LIB_DIR} -lLTO"
if test "x$rpathlink" = "xyes"; then
LTO_RPATH="-Wl,-rpath,$LLVM_LIB_DIR,--enable-new-dtags"
- LTO_LIB="$LTO_RPATH $LTO_LIB"
fi
LTO_DEF=-DLTO_SUPPORT
# DO NOT include the LLVM include dir directly,
2015-02-24 21:19:27 +01:00
@@ -16813,6 +16812,8 @@
+LDFLAGS="$LDFLAGS $LTO_RPATH"
+
### Check endianness ###
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
--- m4/llvm.m4
+++ m4/llvm.m4
2015-02-24 21:19:27 +01:00
@@ -27,7 +27,6 @@
[ LTO_LIB="-L${LLVM_LIB_DIR} -lLTO"
if test "x$rpathlink" = "xyes"; then
LTO_RPATH="-Wl,-rpath,$LLVM_LIB_DIR,--enable-new-dtags"
- LTO_LIB="$LTO_RPATH $LTO_LIB"
fi
LTO_DEF=-DLTO_SUPPORT
# DO NOT include the LLVM include dir directly,