From: Ralf Wildenhues Date: Thu, 13 Jan 2011 18:52:53 +0000 (+0000) Subject: Backport from Libtool: Fix relink mode to use absolute path if hardcode_minus_L. X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=115ef890e502dc45eed8609e51ad6a6ef60c6083;p=deliverable%2Fbinutils-gdb.git Backport from Libtool: Fix relink mode to use absolute path if hardcode_minus_L. /: * ltmain.sh (relink): Use absolute path when hardcoding with -L. --- diff --git a/ChangeLog b/ChangeLog index 668a60c081..aeb360f584 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-12-10 John David Anglin + + * ltmain.sh (relink): Use absolute path when hardcoding with -L. + 2011-01-13 Joel Brobecker * configure.ac: Remove readline, mmalloc, and gdb from noconfigdirs diff --git a/ltmain.sh b/ltmain.sh index cba8b4c7a5..a03433f178 100644 --- a/ltmain.sh +++ b/ltmain.sh @@ -5928,7 +5928,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