Hello,
It is not GNU make but GCC which interprets -static and -shared and calls the linker accordingly.
I have added a configure option called --enable-full-static which links everything statically:
AC_ARG_ENABLE(full-statuc, [ --enable-full-static Link everything in statically],, enable_full_static=no)
I'm sorry, but José's patch broke the full static build. With syslog-ng-1.6.5, and following command set ($BUILD_DIR is the current syslog-ng top directory) : config: cd $(BUILD_DIR); ./configure \ --prefix=/usr \ --sysconfdir=/etc echo "#undef PATH_SYSCONFDIR" >> ${BUILD_DIR}/src/config.h echo "#define PATH_SYSCONFDIR \"/etc/\"" >> ${BUILD_DIR}/src/config.h compile: ${MAKE} -C ${BUILD_DIR} LDFLAGS=-static The resulting linking of syslog-ng will be: $ gcc -g -O2 -Wall -I/usr/include/libol -D_GNU_SOURCE -static -o syslog-ng main.o sources.o center.o filters.o destinations.o log.o cfgfile.o cfg-grammar.o cfg-lex.o affile.o afsocket.o afunix.o afinet.o afinter.o afuser.o afstreams.o afprogram.o afremctrl.o nscache.o utils.o syslog-names.o macros.o -lnsl -lresolv -lfl /usr/lib/libol.a -lnsl $ ldd ${BUILD_DIR}/src/syslog-ng not a dynamic executable The same command set with syslog-ng-1.6.6 (with or without --enable-full-static) yields: $ gcc -g -O2 -Wall -I/usr/include/libol -D_GNU_SOURCE -static -o syslog-ng main.o sources.o center.o filters.o destinations.o log.o cfgfile.o cfg-grammar.o cfg-lex.o affile.o afsocket.o afunix.o afinet.o afinter.o afuser.o afstreams.o afprogram.o afremctrl.o nscache.o utils.o syslog-names.o macros.o -lnsl -lresolv -Wl,-static -lfl -lwrap /usr/lib/libol.a -lnsl -Wl,-call_shared $ ldd src/src/syslog-ng /usr/bin/ldd: src/src/syslog-ng: No such file or directory $ ls -al src/src/syslog-ng -rwxrwxr-x 1 ratz users 412669 Feb 2 12:29 src/src/syslog-ng A typical linker error when full static linking is involved. Please revert the patch or help me find an appropriate fix. Thanks and best regards, 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 -------------------------------------------------------------