* 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 dec
[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
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)
N
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 inst
4 matches
Mail list logo