-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Charles Wilson wrote: | I think that libtool hasn't been told that LDFLAGS should include | -L/usr/lib/w32api. I think this is something that should be passed on | the invocation line in your makefile -- maybe AM_LDFLAGS needs to be set?
As I'm sure you're aware, /usr/lib/w32api is in ld's default library path, so -L/usr/lib/w32api should never be necessary. Nor was it required with libtool-1.5; this is a regression, but I'm not sure what the cause is. In /usr/bin/libtool, I see the following: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" which is hard-coded for cygwin in _LT_SYS_DYNAMIC_LINKER (prev. AC_LIBTOOL_SYS_DYNAMIC_LINKER). But with the libtool script in the package I'm trying to build, I find: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" This didn't happen in another package, so I dug a bit further. If I run ./config.lt in this particular package, then the correct $sys_lib_search_path_spec appears, but when I run './config.status libtool', then I get the latter. Both packages use CC and CXX tags, and but the one that works correctly had warnings during autoreconf: configure.ac:169: warning: LT_OUTPUT was called before LT_LANG /usr/share/aclocal/libtool.m4:775: LT_LANG is expanded from... configure.ac:169: the top level /usr/share/aclocal/libtool.m4:5282: _LT_PROG_CXX is expanded from... /usr/share/aclocal/libtool.m4:5305: _LT_LANG_CXX_CONFIG is expanded from... /usr/share/aclocal/libtool.m4:792: _LT_LANG is expanded from... autoreconf-2.61: configure.ac: tracing configure.ac:169: warning: LT_OUTPUT was called before LT_LANG aclocal.m4:790: LT_LANG is expanded from... configure.ac:169: the top level where the package with the buggy libtool had no such warnings. Any ideas? | $ ./func_win32_libid.sh /usr/lib/w32api/libwinmm.a | x86 archive import That's good to know. Yaakov -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIBBTapiWmPGlmQSMRCKi1AKD3rbfJKHjtOEKwIaXCu4pajiMDKQCg7pG2 64NcQWMFaGoEb9t3V8dmFX4= =79fv -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/