libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why does libtool reorder -Wl, arguments to the end making -Wl, --as


From: Albert Chin
Subject: Re: why does libtool reorder -Wl, arguments to the end making -Wl, --as-needed unusable
Date: Fri, 29 Feb 2008 01:45:17 -0600
User-agent: Mutt/1.5.17 (2007-11-01)

On Thu, Feb 28, 2008 at 03:17:54PM +0200, Petteri Räty wrote:
> address@hidden /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.

-- 
albert chin (address@hidden)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]