GNOME Bugzilla – Bug 655517
using --as-needed in LDFLAGS is not respected and it links on unneeded libs
Last modified: 2013-02-03 21:33:57 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
this is a longstanding libtool issue