This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] libtool patch for direct-linking-to-dll


Hi all,

appended is a libtool patch (based on the current official libtool release
2003-02-16 for enabling the direct-linking-to-dll functionality, which was
applied  a few weeks ago to the binutils cvs release and give a major linking
time improvement especially for big applications and/or libraries. See
http://sources.redhat.com/ml/binutils/2002-12/msg00396.html for further details.

Please note that this patch currently works only with the current cvs ld release
and should be used as a prelimary patch, because it does not check, if ld does
support this functionality. It is enabled by default.

A way for checking this should be discussed. I see two ways for dealing this
with:

1. Adding an ld option like "--disable-dll-linking" or so, which existance could
be checked in libtool, autoconf or configure (currently I don't where the best
place is). This option isn't a must be and it is only used for detecting the
functionality, because the necessary ld changes are backward compatible.

2. Using the ld's release time >2003
	$ ld -v
	GNU ld version 2.xx.yy 2003...
                             ^^^^
3. Another great idea, I currently do not have ....

Any hints or comments ?

2003-02-27  Ralf Habacker  <ralf dot habacker at freenet dot de>

	* libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER): Removed
	postinstall_cmds and postuninstall_cmds,
      added shared library to 'library_names_spec'.
	(AC_LIBTOOL_LANG_CXX_CONFIG): Removed import library
 	generation from 'archive_cmds'.

	* ltmain.sh: (install cygwin/mingw): added installing
	of shared libraries into 'bin' dir
	(uninstall cygwin/mingw): added uninstalling
	of shared libraries

Ralf

Attachment: libtool.m4.dif
Description: Binary data

Attachment: ltmain.sh.dif
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]