Hi all, I have a strange situation with libtool (version 1.4.3), I'm wondering what I could do to make it work.
I'm trying to crosscompile a C++ project on an i686, for a cris architecture target. Compiling with libtool goes fine, but linking fails: ../libtool --mode=link --tag=CXX g++-cris -isystem /home/pieter/devboard_82/target/cris-axis-linux-gnu/include -mlinux -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new -L/home/pieter/devboard_82/target/cris-axis-linux-gnu/lib -o paycon socketclient.o threadobject.o casher.o main.o -lpthread -ltc the directory /home/pieter/devboard_82/target/cris-axis-linux-gnu/lib contains the targets libraries, among which libpthread.so and libtc.so Now this is what the libtool script does: g++-cris -isystem /home/pieter/devboard_82/target/cris-axis-linux-gnu/include -mlinux -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new -o paycon socketclient.o threadobject.o casher.o main.o -L/home/pieter/devboard_82/target/cris-axis-linux-gnu/lib /usr/lib/libtc.so -lpthread /usr/lib/libtc.so: could not read symbols: Invalid operation collect2: ld returned 1 exit status So -lpthread was not substituted, but -ltc was substituted by /usr/lib/libtc.so However, this is not what I want, cause now g++-cris tries to link against a x686 library which obviously fails. I need it to link against /home/pieter/devboard_82/target/cris-axis-linux-gnu/lib/libtc.so instead, which is a cris library. Now I'm wondering, what makes libtool want to replace -ltc by /usr/lib/libtc.so? Why doesn't it do the same for -lpthread? How can I avoid this? Best regards, Pieter _______________________________________________ Libtool mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/libtool