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-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>
* clcommit.m4sh: Add --rcfile option.
;;
*)
# 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
done