summaryrefslogtreecommitdiff
path: root/ltmain.sh
diff options
context:
space:
mode:
authorrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-13 18:51:10 +0000
committerrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-13 18:51:10 +0000
commit752095b4d9a649097dc04bb99de66d6b12954015 (patch)
tree396bffce565b436a76deec4ea8919ff09f5e8727 /ltmain.sh
parent8cf1a1c05815e629f32b52467d37ecfa9bb422f1 (diff)
downloadgcc-752095b4d9a649097dc04bb99de66d6b12954015.tar.gz
Backport from Libtool: Fix relink mode to use absolute path if hardcode_minus_L.
/: * ltmain.sh (relink): Use absolute path when hardcoding with -L. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168762 138bc75d-0d04-0410-961f-82ee72b054a4
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