Hello José,
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?
Using the "-static" option you static linking *every* library, including the ones installed in /lib (eg: libc).
Interesting, the abyss of GNU make ...
With the patch you are only static linking libraries that have been installed under the /usr directory (/usr/lib, /usr/local/lib, ...). You probably don't need to static link libc and other /lib libraries.
We do, but that's a different story.
Result (with the patched configure): $ ldd syslog-ng libnsl.so.1 => /lib/libnsl.so.1 (0x043ee000) libresolv.so.2 => /lib/libresolv.so.2 (0x00614000) libc.so.6 => /lib/tls/libc.so.6 (0x002b5000) /lib/ld-linux.so.2 (0x0029c000)
Thanks for the explanation. I'll check if the newest syslog-ng source code still works with our toolchain and static linking including glibc and uclibc. 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 -------------------------------------------------------------