libtool: two cygwin patches

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Thu Mar 26 00:50:00 GMT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Chuck,

I attached two patches for libtool for your consideration:

1) 2.2-export-all-symbols.patch:

On Cygwin, the --export-all-symbols linker flag is required;
- --export-dynamic has no effect (see
http://sourceware.org/bugzilla/show_bug.cgi?id=6744).

This patch fixes two problems:

1) LT_SYS_DLOPEN_SELF returns a false negative;
2) Using the -export-dynamic libtool flag does not affect the resulting
binary.

2) 2.2-gcc4-libs.patch:

With gcc4 providing shared libs, it should now perfectly legitimate to
add any of these libs to the libtool link command.  Right now, though,
libtool can't find these libraries because $sys_lib_search_path_spec is
hard-coded to ignore it, and libtool will refuse to link against any
library it can't find (even though the linker itself can).

Instead, this patch simply adds /usr/lib/w32api to the default
gcc-specific search path.  The m4_if() makes sure that w32api is added
only once, as is done with Darwin a few lines later.


Yaakov
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAknKwJIACgkQpiWmPGlmQSPW5gCg/GZFiM5txCIWxu45tSFY+bi+
NSsAn0W0YaD3m+Casxtc/yH1OlVmQtIa
=9w+D
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2.2-export-all-symbols.patch
Type: text/x-patch
Size: 1107 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20090326/fb996131/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2.2-gcc4-libs.patch
Type: text/x-patch
Size: 1354 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20090326/fb996131/attachment-0001.bin>
-------------- next part --------------
--
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/


More information about the Cygwin mailing list