[The tl;dr version: this patch lets you compile dbus-glib on recent Fedora.] If an executable links against libfoo, and libfoo links against libbar, then GNU BFD ld has traditionally linked the executable explicitly against libbar, allowing it to use symbols from libbar, unless the --no-add-needed option is used. This is unfortunate for deterministic builds if interdependencies change, and somewhat slow, so GNU gold defaults to --no-add-needed, and Fedora have recently patched the standard (BFD) ld to do the same.
Please see http://git.collabora.co.uk/?p=user/smcv/dbus-glib-smcv.git;a=shortlog;h=refs/heads/no-add-needed for a patch, and some incidental .gitignore cleanup. I'll attach the most relevant patch here.
Created attachment 37413 [details] [review] proposed patch
Created attachment 37720 [details] [review] Consolidate LDADD variables in tests/examples and make them more complete Here's an updated patch, now that the gvalue-to-gvariant branch (which was not --no-add-needed compatible either) has been merged. I've also updated the .gitignore patches in my git branch to include the new test from that branch: http://git.collabora.co.uk/?p=user/smcv/dbus-glib-smcv.git;a=shortlog;h=refs/heads/no-add-needed
Review of attachment 37720 [details] [review]: Looks good to me, thanks!
Fixed in git for 0.88, thanks.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.