3 May
2004
3 May
'04
20:48
Davi de Castro Reis
Does someone know how can I create static binaries using autotools?
Use libtool and it's a simple --enable-static --disable-shared. But please remember that your application is only really static if *no* function for name resolving (gethostbyname(), getpwnam() etc.) is used. Otherwise you get a semi static program because the name resolving functions reside in the libnss* libraries that are *always* dynamically loaded, even if glibc has been linked in statically. Philipp