From: John David Anglin Date: Sun, 9 Jan 2011 18:51:28 +0000 (+0100) Subject: Fix relink mode to use absolute path if hardcode_minus_L. X-Git-Tag: v2.4.2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9167aecabd12c5afe7a65d45dc73f8c92ab42f05;p=thirdparty%2Flibtool.git 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. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 186ccc3fd..1ad37415e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-01-09 John David Anglin (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 Fix $wl setting for Solaris Studio 12.2 f90 on GNU/Linux. diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index d9e1cd250..7baa6aab5 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -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