]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [ linux ]
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 17 Sep 2006 19:27:14 +0000 (19:27 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 17 Sep 2006 19:27:14 +0000 (19:27 +0000)
[ k*bsd*-gnu ]: Test if ld sets DT_RUNPATH; in that case, set
shlib_overrides_runpath to `yes'.  Fixes test failure of new
test on Gentoo GNU/Linux.

ChangeLog
libltdl/m4/libtool.m4

index d43d002109ff11a095bcf11f4b0437e4a1315826..397f76870d389e17457244e1b58daeeac803df95 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2006-09-17  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
 
+       * libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [ linux ]
+       [ k*bsd*-gnu ]: Test if ld sets DT_RUNPATH; in that case, set
+       shlib_overrides_runpath to `yes'.  Fixes test failure of new
+       test on Gentoo GNU/Linux.
+
        * tests/shlibpath.at: New file, with...
        (shlibpath_overrides_runpath): ...new test.
        * Makefile.am: Update.
index 50dea3683d402c156e5ca6b3c0a013ac0d868937..0e49f0a4a04e58621f56f5c25f9557ce70c13f37 100644 (file)
@@ -2275,6 +2275,15 @@ linux* | k*bsd*-gnu)
   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   shlibpath_var=LD_LIBRARY_PATH
   shlibpath_overrides_runpath=no
+  # Some binutils ld are patched to set DT_RUNPATH 
+  save_LDFLAGS=$LDFLAGS
+  libdir=/foo wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) \
+  eval LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"
+  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
+    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"],
+       [shlibpath_overrides_runpath=yes])])
+  LDFLAGS=$save_LDFLAGS
+
   # This implies no fast_install, which is unacceptable.
   # Some rework will be needed to allow for fast_install
   # before this can be enabled.