* config/ltmain.m4sh (func_mode_link): Make Gary's new tests

pass. When the output wrapper script is not in the current
directory, we can not use an rpath which is relative to the
current directory. Use an absolute path instead.
This commit is contained in:
Peter O'Gorman 2004-10-23 12:04:34 +00:00
parent 7bcbdbbc55
commit 596e2489bd
2 changed files with 18 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2004-10-23 Peter O'Gorman <peter@pogma.com>
* config/ltmain.m4sh (func_mode_link): Make Gary's new tests
pass. When the output wrapper script is not in the current
directory, we can not use an rpath which is relative to the
current directory. Use an absolute path instead.
2004-10-22 Gary V. Vaughan <gary@gnu.org> 2004-10-22 Gary V. Vaughan <gary@gnu.org>
* clcommit.m4sh: Add --rcfile option. * clcommit.m4sh: Add --rcfile option.

View File

@ -5495,7 +5495,17 @@ EOF
;; ;;
*) *)
# Relative path: add a thisdir entry. # Relative path: add a thisdir entry.
rpath="$rpath\$thisdir/$dir:" case "$output" in
*[[\\/]]*)
# the output file is not in the current dir
# so we need an absolute path.
absdir=`cd "$dir" && pwd`
rpath="$rpath$absdir:"
;;
*)
rpath="$rpath\$thisdir/$dir:"
;;
esac
;; ;;
esac esac
done done