]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Fix relink mode to use absolute path if hardcode_minus_L.
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Sun, 9 Jan 2011 18:51:28 +0000 (19:51 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 9 Jan 2011 18:57:30 +0000 (19:57 +0100)
* libltdl/config/ltmain.m4sh (func_mode_link): Use absolute path
when hardcoding with -L.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
libltdl/config/ltmain.m4sh

index 186ccc3fd17d290726b0eab4ed93fd2004b70192..1ad37415ed4c67fad21661200882cb210adef090 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>  (tiny change)
+
+       Fix relink mode to use absolute path if hardcode_minus_L.
+       * libltdl/config/ltmain.m4sh (func_mode_link): Use absolute path
+       when hardcoding with -L.
+
 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        Fix $wl setting for Solaris Studio 12.2 f90 on GNU/Linux.
index d9e1cd25050719462d2997e3ad51b1f3bce60e06..7baa6aab574ea5688971c78e151851831c86a226 100644 (file)
@@ -6050,7 +6050,7 @@ func_mode_link ()
                 test "$hardcode_direct_absolute" = no; then
                add="$dir/$linklib"
              elif test "$hardcode_minus_L" = yes; then
-               add_dir="-L$dir"
+               add_dir="-L$absdir"
                # Try looking first in the location we're being installed to.
                if test -n "$inst_prefix_dir"; then
                  case $libdir in