[gst-devel] libtool script

Ferenc Gerlits fgerlits at beltav.hu
Fri Jun 24 07:02:20 CEST 2005


Hi,

Can anybody help me with the libtool script?  (The one generated from 
ltmain.sh, not the one in /usr/bin.)  It takes a set of perfectly 
sensible-looking arguments:

/bin/sh ../../../libtool --mode=link --tag=CC gcc  -g -O2 
-L/home/fgerlits/livesupport/usr/lib -o test-gconf 
test_gconf-test-gconf.o -Wl,--export-dynamic -pthread 
-L/home/fgerlits/livesupport/usr/lib -lgstreamer-0.8 -lgobject-2.0 
-lgmodule-2.0 -ldl -lgthread-2.0 -lxml2 -lpthread -lz -lm -lglib-2.0 
-Wl,--export-dynamic -pthread -L/home/fgerlits/livesupport/usr/lib 
-lgconf-2 -lORBit-2 -lgobject-2.0 -lgthread-2.0 -lm -lgmodule-2.0 -ldl 
-lglib-2.0   libgstgconf-0.8.la

and turns it into this sillyness:

gcc -g -O2 -o .libs/test-gconf test_gconf-test-gconf.o 
-Wl,--export-dynamic -Wl,--export-dynamic 
-L/home/fgerlits/livesupport/usr/lib -pthread ./.libs/libgstgconf-0.8.so 
/home/fgerlits/livesupport/usr/lib/libgstreamer-0.8.so 
/usr/lib/libxml2.so -lz /usr/lib/libgconf-2.so /usr/lib/libORBit-2.so 
/usr/lib/libgmodule-2.0.so /usr/lib/libpopt.so 
/usr/lib/libgobject-2.0.so /usr/lib/libgthread-2.0.so 
/usr/lib/libglib-2.0.so 
/home/fgerlits/livesupport/usr/lib/libgobject-2.0.so 
/home/fgerlits/livesupport/usr/lib/libgthread-2.0.so -lpthread -lm 
/home/fgerlits/livesupport/usr/lib/libgmodule-2.0.so -ldl 
/home/fgerlits/livesupport/usr/lib/libglib-2.0.so -Wl,--rpath 
-Wl,/home/fgerlits/livesupport/usr/lib

Note that the first -lglib-2.0 is expanded to "/usr/lib/libglib-2.0.so" 
(incorrect), and the second one to "/home/.../libglib-2.0.so" (correct).

How do I stop it from hard-coding /usr/lib?  Or, better: can I make it 
_not_ to hard-code library locations at all?

Ferenc




More information about the gstreamer-devel mailing list