X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=ltmain.sh;h=9503ec85d709d8f7fdad222ef3c4d8d85fdc6cd1;hb=13bff72615e5a93a6e5f28e83a594125e66ccced;hp=cba8b4c7a565df5b89934ad2820d28f9bc553138;hpb=3725885a6563fe9c77b251ab5328633279fdeafa;p=deliverable%2Fbinutils-gdb.git diff --git a/ltmain.sh b/ltmain.sh index cba8b4c7a5..9503ec85d7 100644 --- a/ltmain.sh +++ b/ltmain.sh @@ -976,7 +976,7 @@ func_enable_tag () case $host in - *cygwin* | *mingw* | *pw32* | *cegcc*) + *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* ) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; @@ -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