|Main Archive Page > Month Archives > syslog-ng-users archives|
On Dec 13 20:13, Balazs Scheidler wrote:
> On Fri, 2010-12-10 at 17:57 +0100, Corinna Vinschen wrote:
> > On Dec 10 10:30, Corinna Vinschen wrote:
> > I just got the hint that the libtool --mode=link option "-module" is
> > supposed to do exactly this on Cygwin. I tested it and with this
> > option the subsequent `make install' actually copies the DLLs into the
> > $(libexecdir)/syslog-ng directory where they belong.
> > I checked that the -module option is already known to libtool 2.2.6, so
> > it seems it would make sense to add this option generically to the
> > Makefile.am files in the modules subdirectories, along these lines.
> > --- SNIP ---
> > diff --git a/modules/affile/Makefile.am b/modules/affile/Makefile.am
> > index 9917ebf..04dbaae 100644
> > --- a/modules/affile/Makefile.am
> > +++ b/modules/affile/Makefile.am
> > @@ -12,6 +12,6 @@ EXTRA_DIST = $(BUILT_SOURCES) affile-grammar.ym
> > libaffile_la_CPPFLAGS = $(AM_CPPFLAGS)
> > libaffile_la_LIBADD = ../../lib/libsyslog-ng.la
> > -libaffile_la_LDFLAGS = -avoid-version
> > +libaffile_la_LDFLAGS = -avoid-version -module
> > include $(top_srcdir)/build/lex-rules.am
> > --- SNAP ---
> > Would that be ok with you?
> It used to be "-avoid-version -module" but it was removed by this
> Author: Balazs Scheidler <firstname.lastname@example.org> 2010-09-27 15:51:22
> Committer: Balazs Scheidler <email@example.com> 2010-09-27 15:51:22
> Parent: f437439a9c28555271b1298eeaf6e962ec626cc1 (use -avoid-version for modules)
> Follows: v3.2alpha1
> Precedes: v3.2beta1
> modules: don't use -module libtool option
> As it causes a libtool warning when linking the module explicitly to
> a program and it worked without that on all of our platforms anyway.
> The problem is that I'm linking pdbtool against the libdbparser.so file
> and the unit tests and using -module causes a lot of warnings during
> Do you perhaps have an idea how otherwise work around the warning?
Does the -export-dynamic option when linking pdbtool help, perhaps?
-- Corinna Vinschen Cygwin Project Co-Leader Red Hat ______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html