Yaakov (Cygwin Ports) schrieb:
> -----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!
Charles will not like that.
dependency_libs is also used on compilation to resolve all required
dependencies. If you effectively delete all dependencies the entire
build process is dead. libtool does not know anymore with which libs to
link.
Rather patch libltdl to ignore the dependency_libs, since the PE loader
does this already.
--
Reini Urban
http://phpwiki.org/ http://murbreak.at/
http://helsinki.at/ http://spacemovie.mur.at/
-------------------------------------------------------------------------
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