Backport from Libtool: Fix relink mode to use absolute path if hardcode_minus_L.

/:
	* ltmain.sh (relink): Use absolute path when hardcoding with -L.
This commit is contained in:
Ralf Wildenhues
2011-01-13 18:52:53 +00:00
parent e82bcd79cd
commit d5802f24ce
2 changed files with 5 additions and 1 deletions

View File

@ -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