bug-libtool
[Top][All Lists]
Advanced

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

BUG: -Wl,--as-needed is added after libraries


From: Resul Cetin
Subject: BUG: -Wl,--as-needed is added after libraries
Date: Thu, 24 Dec 2009 17:39:15 +0100
User-agent: KMail/1.12.4 (Linux/2.6.32-trunk-amd64; KDE/4.3.4; x86_64; ; )

I tried to add --Wl,--as-needed to the library flags, but it seems that 
libtool adds this option after the -l arguments and makes it useless (it must 
stand before the libs and not after them).

Is there a workaround or can it be fixed in libtools? I saw different patches 
which does that, but maybe there is a more elegant way to do it.

The actual problem is that `pkg-config --libs gtk+-x11-2.0` isn't really fine 
grained and adds a lot of extra dependencies I don't use. --as-needed would be 
a nice way to fix it for me.

Downstream bug is http://bugs.debian.org/347650

Best regards,
        Resul Cetin




reply via email to

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