aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2011-01-13 18:52:53 +0000
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2011-01-13 18:52:53 +0000
commit115ef890e502dc45eed8609e51ad6a6ef60c6083 (patch)
treed92161df2dbf4b79021f19425c3454da29d88adb /ltmain.sh
parentAdd a testcase for PR ld/12356. (diff)
downloadbinutils-gdb-115ef890e502dc45eed8609e51ad6a6ef60c6083.tar.gz
binutils-gdb-115ef890e502dc45eed8609e51ad6a6ef60c6083.tar.bz2
binutils-gdb-115ef890e502dc45eed8609e51ad6a6ef60c6083.zip
Backport from Libtool: Fix relink mode to use absolute path if hardcode_minus_L.
/: * ltmain.sh (relink): Use absolute path when hardcoding with -L.
Diffstat (limited to 'ltmain.sh')
-rw-r--r--ltmain.sh2
1 files changed, 1 insertions, 1 deletions
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