From 3752f75a6d54bf6a19a29da309f5433f8889f69f Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Thu, 13 Jan 2011 18:51:10 +0000 Subject: backport: ltmain.sh (relink): Use absolute path when hardcoding with -L. Backport from Libtool: Fix relink mode to use absolute path if hardcode_minus_L. /: * ltmain.sh (relink): Use absolute path when hardcoding with -L. From-SVN: r168762 --- ltmain.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ltmain.sh') diff --git a/ltmain.sh b/ltmain.sh index cba8b4c7a56..a03433f1789 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 -- cgit v1.2.1