This is the mail archive of the
mailing list for the Cygwin project.
Re: libtool problem when installing packages with modules
On Dec 10 17:42, Peter Rosin wrote:
> 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 Makefile.am? Does AM_LDFLAGS make sense for this?
> Taking modules/syslogformat/Makefile.am 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.
Ok, that makes sense. Thanks again.
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com