Hi,

[ I honestly did some googling on this, but didn't find anyting relevant. ]

I have the following problem with libtool:

If I ask it to build a static binary linked with glib-2.0:

        ../libtool --tag=CC --mode=link gcc  -g -O2 -o splashy -all-static  
splashy-splashy_main.o   -lglib-2.0 

I get this:
        
        gcc -g -O2 -o splashy -static splashy-splashy_main.o  
/usr/lib/libglib-2.0.so -lrt

But that fails;  /usr/lib/libglib-2.0.so obviously is a dynamic library.

/usr/lib/libglib-2.0.a is present on my system, and if I
replace /usr/lib/libglib-2.0.so with -lglib-2.0 it works as expected.


grts Tim

$ libtool --version
ltmain.sh (GNU libtool) 1.5.22 Debian 1.5.22-4 (1.1220.2.365 2005/12/18 
22:14:06)



_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to