Hello Peter, * Peter Samuelson wrote on Thu, Jul 24, 2008 at 03:48:19PM CEST: > $ libtool --mode=link gcc -static -o foo foo.o -lxml2 > gcc -o foo foo.o /usr/lib/libxml2.so > > There are two problems with this: > (1) gcc never sees the -static flag > (2) gcc gets libraries as libxml2.so instead of libxml2.a (or indeed -lxml2)
Try using -all-static, libtool defines -static as linking statically against uninstalled libtool libraries only. Hope that helps. Cheers, Ralf -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]