llvm-toolchain/debian/patches/0023-link-libopagent.patch
2013-04-13 08:31:32 +00:00

34 lines
1.4 KiB
Diff

Index: llvm-toolchain_3.3~svn179457/configure
===================================================================
--- llvm-toolchain_3.3~svn179457.orig/configure 2013-03-25 14:13:33.000000000 +0100
+++ llvm-toolchain_3.3~svn179457/configure 2013-04-13 10:29:39.953932017 +0200
@@ -13571,7 +13571,7 @@
case $llvm_cv_os_type in
Linux)
if test -n "$llvm_cv_oppath" ; then
- LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
+ #LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
{ echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
if test "${ac_cv_search_bfd_init+set}" = set; then
@@ -13667,7 +13667,7 @@
echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
ac_res=$ac_cv_search_bfd_init
if test "$ac_res" != no; then
- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+ test "$ac_res" = "none required" || true
fi
@@ -13703,8 +13703,8 @@
if test -z "$ac_lib"; then
ac_res="none required"
else
- ac_res=-l$ac_lib
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ ac_res="-Wl,--as-needed -l$ac_lib -Wl,--no-as-needed"
+ LIBS="-Wl,--as-needed -l$ac_lib -Wl,--no-as-needed $ac_func_search_save_LIBS"
fi
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"