This is the mail archive of the cygwin-apps 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]

Re: libtool problem when installing packages with modules

Den 2010-12-10 17:08 skrev Corinna Vinschen:
> On Dec 10 16:47, Peter Rosin wrote:
>> Den 2010-12-10 16:11 skrev Corinna Vinschen:
>>> Obviously it would be nice if libtool had an option to do it right in
>>> `make install'.  For instance, some '-install-as-module' option which
>>> results in copying only the DLLs to $(libexecdir)/syslog-ng, but which
>>> omits the .dll.a and .la files since they are note required anyway.
>>> Something like that doesn't exist, I assume.  WOuld it be an option
>>> to implement this?
>> IIRC, libtool should not do the ../bin dance when it installs libtool
>> modules, so I can only assume that these syslog-ng modules are not built
>> as libtool modules, but instead as ordinary libtool libraries. Does
>> syslog-ng supply the -module option to libtool?
> No, it doesn't.  I just tested it and -module does basically the right
> thing, except that it still copies the .dll.a and .la files to the
> target directory. 

Yes, those are not needed in simple cases like this.

> Anyway, thanks for the hint!

Glad to be of help!

> How do I add this to  Does AM_LDFLAGS make sense for this?

Taking modules/syslogformat/ as an example, I would
add -module to the libsyslogformat_la_LDFLAGS variable. Then the
same for all other modules of course. Then send upstream and forget
about it, I don't see any reason for not adding -module for modules.

Adding to AM_LDFLAGS would not be the right thing when linking the
actual syslog-ng executable.


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