Re: Building completely static program

2004-05-18 Thread Ralf Wildenhues
* Bill Moseley wrote on Tue, May 18, 2004 at 10:35:24PM CEST: > I'm wondering how to build a static binary. Looking at the Libtool documentation, -all-static should be the option you need. --disable-shared disables building shared libraries, it has little to do with linking against shared librari

Building completely static program

2004-05-18 Thread Bill Moseley
I'm wondering how to build a static binary. I tried using: ./configure -disable-shared CCFLAGS=LDFLAGS="-Wl,-static" CFLAGS=-O2 but my program links with libxml2, so when linking I still see: (notice how libxml2.so is listed) /bin/sh ../libtool --mode=link gcc -Wall -O2 -Wl,-static -o swish