On Dec 10 17:57, 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?
I created a matching bugzilla entry, https://bugzilla.balabit.com/show_bug.cgi?id=104, and changed the patch attached to https://bugzilla.balabit.com/show_bug.cgi?id=103 accordingly. Thanks in advance, Corinna -- Corinna Vinschen Cygwin Project Co-Leader Red Hat