José Pedro Oliveira wrote:
Balazs,
The attachment is a new patch against syslog-1.6.5 configure.in. It will static link the flex, the tcpwrappers and libnet libraries.
I'm not sure I understand your patch but to me the essential part seems to be:
-LIBS="$LIBS $LEXLIB $LIBOL_LIBS" +LIBS="$LIBS -Wl,-static $LEXLIB $LIBWRAP_LIBS $LIBNET_LIBS -Wl,-call_shared $LIBOL_LIBS" AC_SUBST(YFLAGS)
AC_SUBST(MAKE_CLASS)
I wonder however why you need this, as it's perfectly ok (at least for me) to statically link syslog-ng and its components setting the LDFLAGS when calling make: # ./configure ... # make LDFLAGS=-static # ldd src/src/syslog-ng not a dynamic executable What am I missing? Another thing I'd like to have fixed when you already fiddling with configure.in :), is the sysconfdir stuff. src/config.h which is generated does not contain the correct PATH_SYSCONFDIR when configure is invoked with --sysconfdir. We have to manually patch it like so (excerpt from our Makefile): # ./configure --prefix=/usr --sysconfdir=/etc # echo "#undef PATH_SYSCONFDIR" >> src/config.h # echo "#define PATH_SYSCONFDIR \"/etc/\"" >> src/config.h Anyone with the same problem? Cheers, Roberto Nibali, ratz -- ------------------------------------------------------------- addr://Rathausgasse 31, CH-5001 Aarau tel://++41 62 823 9355 http://www.terreactive.com fax://++41 62 823 9356 ------------------------------------------------------------- terreActive AG Wir sichern Ihren Erfolg -------------------------------------------------------------