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

Within libtool .la files, the dependency_libs variable serves two purposes:

1) For runtime libs, executables linked against the library will be
linked against all listed dependencies as well, e.g.

libtool --mode=link --tag=CXX g++ -o kfoo.exe foo.o -lkdeui

will work because libtool will turn that into:

g++ -o kfoo.exe foo.o /usr/lib/libkdeui.dll.a /usr/lib/libkdecore.dll.a
... /usr/lib/libkdefx.dll.a ... /usr/lib/qt3/lib/libqt-mt.dll.a ...

2) When using lt_dlopen and friends (usually on modules), libltdl will
resolve the library's dependencies at load time.

Since on Cygwin, all DLLs must have all dependencies resolved at link
time, this is a completely unnecessary waste of resources.  This is
especially noticeable with aKode/aRts/KDE, which use an internal libltdl.

Since one does not usually link against modules, cygport has now been
patched to set dependency_libs to empty in this case.  But for now, and
again after the next upcoming upload, the following is a workaround:

find /usr/lib -name '*.la' -exec grep -l shouldnotlink=yes '{}' + | \
xargs sed -i -e '/^dependency_libs=/d'

After the second-to-next upload, this will not be necessary, as cygport
will do this automatically from now on.  Enjoy a faster KDE!


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

iD8DBQFGdMHjpiWmPGlmQSMRCAvqAJ9zCcetbaCwM+6syYXpjuY0NJ9vAACgoR0o
tU7keG2lGA+c9j8/ESpr6Fo=
=ng/l
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Cygwin-ports-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general

Reply via email to