Petteri Räty wrote: > Albert Chin kirjoitti: >> On Thu, Feb 28, 2008 at 03:17:54PM +0200, Petteri Räty wrote: >>> [EMAIL PROTECTED] /mnt/checkouts/classpath/native/jni/qt-peer $ make >>> make all-am >>> make[1]: Entering directory >>> `/mnt/checkouts/classpath/native/jni/qt-peer' >>> /bin/sh ../../../libtool --tag=CXX --mode=link g++ -DQT_SHARED >>> -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui >>> -g -O2 -module -version-info 0:0:0 -no-undefined -avoid-version >>> -Wl,--as-needed -o libqtpeer.la -rpath >>> /usr/local/classpath/lib/classpath ... [snip snip] >>> >>> --as-needed needs to come before the object files and libs to be >>> effective but libtool moves it to the end. This happens with both >>> 1.5.26 and cvs head. >> >> The fact that libtool reorders _any_ of the command-line is a bug. I >> think Ralf has a fix for this but I don't think it'll happen until 2.1 >> or 2.2. >> > > Still there in libtool 2.2
As a workaround until we get this fixed, if an automake based project try 'make CXXLD='g++ -Wl,--as-needed' CCLD='gcc -Wl,--as-needed'. I'll look into this. Peter -- Peter O'Gorman http://pogma.com _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool