GNOME Bugzilla – Bug 549621
swfdec-gnome misuses _LDFLAGS automake variable, fails to build with --as-needed forced on
Last modified: 2008-08-28 08:53:30 UTC
Please describe the problem: The target_LDFLAGS variable in automake is designed to pass flags to the linker, but swfdec-gnome 2.22.2 passes libraries through them, which is non-standard. While libtool parameter reordering makes it fine even when passing -Wl,--as-needed through LDFLAGS, a compiler with specs modified to force --Wl,--as-needed on, or a linker with --as-needed forced on, will refuse to link correctly because of this. The fix is very quick, replacing _LDFLAGS with _LIBADD. HTH, Diego Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 117478 [details] [review] Patch to fix. I already submitted the patch to the Gentoo bug: http://bugs.gentoo.org/show_bug.cgi?id=232757
committed. Although I forgot to credit the patch to you in the commit message. :(