[Top][All Lists]
[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: |
Sun, 2 Mar 2008 19:42:53 -0600 |
User-agent: |
Mutt/1.5.17 (2007-11-01) |
On Mon, Mar 03, 2008 at 02:02:09AM +0200, Petteri Räty wrote:
> Albert Chin kirjoitti:
>> 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.
>>
>
> Still there in libtool 2.2
I forgot we skipped 2.0. So, that means "I don't think it'll happen
until 2.3 or 2.4"
--
albert chin (address@hidden)