After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 655517 - using --as-needed in LDFLAGS is not respected and it links on unneeded libs
using --as-needed in LDFLAGS is not respected and it links on unneeded libs
Status: RESOLVED NOTGNOME
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2011-07-28 17:23 UTC by Ionut Biru
Modified: 2013-02-03 21:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ionut Biru 2011-07-28 17:23:59 UTC
Having LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
On arch linux 

readelf -d /usr/lib/gtk-3.0/3.0.0/printbackends/libprintbackend-cups.so  | grep NEEDED

returns 40

On fedora

returns 8

It turns out that fedora is using a workaround added in 2008 
http://pkgs.fedoraproject.org/gitweb/?p=gtk2.git;a=commit;h=15ae31a42a527d883a6dfcf57e954b5140ae2e81

In my opinion a fix should be committed in gtk to avoid such workarounds in all distributions.

Affected versions 2.24.5 and 3.0.12
Comment 1 Matthias Clasen 2013-02-03 21:33:57 UTC
this is a longstanding libtool issue