1999-01-06 Gary V. Vaughan <gvaughan@oranda.demon.co.uk>
+
+ * ltmain.in (dllsearchpath): add absolute directory paths to
+ dllsearchpath so that the wrapper scripts can be called from any
+ directory (e.g. tests) on cygwin.
* ltconfig.in (cygwin, library_names_spec): revert Alexandre's
change from yesterday to use `-dll.a' suffix. That change caused
case "$host" in
*-*-cygwin32* | *-*-mingw32* | *-*-os2*)
compile_dependencylibs="$compile_dependencylibs $arg"
+ dllsearchdir="`expr $arg : '-L\(.*\)'`"
+ dllsearchdir=`cd "$dllsearchdir" && pwd || echo "$dllsearchdir"`
if test -n "$dllsearchpath"; then
- dllsearchpath="$dllsearchpath:`expr $arg : '-L\(.*\)'`"
+ dllsearchpath="$dllsearchpath:$dllsearchdir"
else
- dllsearchpath="`expr $arg : '-L\(.*\)'`"
+ dllsearchpath="$dllsearchdir"
fi
;;
esac
case "$host" in
*-*-cygwin32* | *-*-mingw32* | *-*-os2*)
compile_dependencylibs="$compile_dependencylibs -L$dir -l$name"
+ dllsearchdir=`cd "$dir" && pwd || echo "$dir"`
if test -n "$dllsearchpath"; then
- dllsearchpath="$dllsearchpath:$dir"
+ dllsearchpath="$dllsearchpath:$dllsearchdir"
else
- dllsearchpath="$dir"
+ dllsearchpath="$dllsearchdir"
fi
;;
esac