* TODO: removed the reference to making libltdl and demo work on
win32. They *do* work now that wrapper scripts are functioning.
+ * ltmain.in (file_magic_command): It turns out that if the
+ file_magic_command generates huge output (e.g. running `objdump
+ -f' over a large import lib [say libX11.a]) the expr to check it
+ against the file_magic_regex blows up. There is now an optimistic
+ heuristic, to save only the first 10 lines of running
+ file_magic_command which (at risk of sounding like Bill) should be
+ enough for anyone =)O|.
+
+ * ltmain.in: Set the compile_dependencylibs and dllsearchpath for
+ non-libtool libs, or else libdeps only works between ltlibs for
+ cygwin32.
+
1998-12-23 Alexandre Oliva <oliva@dcc.unicamp.br>
* ltmain.in (SP2NL, NL2SP): use `tr' magic to avoid passing very
esac
deplibs="$deplibs $arg"
lib_search_path="$lib_search_path `expr $arg : '-L\(.*\)'`"
+ case "$host" in
+ *-*-cygwin32* | *-*-mingw32* | *-*-os2*)
+ compile_dependencylibs="$compile_dependencylibs $arg"
+ if test -n "$dllsearchpath"; then
+ dllsearchpath="$dllsearchpath:`expr $arg : '-L\(.*\)'`"
+ else
+ dllsearchpath="`expr $arg : '-L\(.*\)'`"
+ fi
+ ;;
+ esac
;;
- -l*) deplibs="$deplibs $arg" ;;
+ -l*)
+ deplibs="$deplibs $arg"
+ compile_dependencylibs="$compile_dependencylibs $arg"
+ ;;
-module)
if test "$module" != yes; then
# strict. What do you think Gordon?
potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
for potent_lib in $potential_libs; do
- file_output=`eval $file_magic_command $potent_lib`
- if test `expr "$file_output" : ".*$file_magic_regex"` -ne 0 ; then
+ file_output=`eval $file_magic_command $potent_lib \
+ | sed '11,$d'`
+ if test `expr "X$file_output" : "X.*$file_magic_regex"` -ne 0 ; then
newdeplibs="$newdeplibs $a_deplib"
a_deplib=""
break 2