Bug#492220: static linking is broken

2008-07-28 Thread Ralf Wildenhues
* Peter Samuelson wrote on Sun, Jul 27, 2008 at 01:16:23AM CEST: [Ralf Wildenhues] Try using -all-static, libtool defines -static as linking statically against uninstalled libtool libraries only. That works. But why then does -static cause libtool to pull in all of a library's declared

Bug#492220: static linking is broken

2008-07-26 Thread Peter Samuelson
[Ralf Wildenhues] Try using -all-static, libtool defines -static as linking statically against uninstalled libtool libraries only. That works. But why then does -static cause libtool to pull in all of a library's declared dependencies? It should trust the ld.so, like the default --mode=link

Bug#492220: static linking is broken

2008-07-24 Thread Ralf Wildenhues
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

Bug#492220: static linking is broken

2008-07-24 Thread Peter Samuelson
Package: libtool Version: 1.5.26-4 Severity: normal $ 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)