GNOME Bugzilla – Bug 528483
jhbuild link failure
Last modified: 2008-05-25 20:19:24 UTC
Hi, this patch fixes jhbuild for me. Basically jhbuild isn't building the X libraries, so the pkg-config files for them have -L/usr/lib. Now the jhbuilt gnome stack follows later on the link line with -L/src/build/jhbuild/lib. This change makes the GNOME_SESSION_LIBS override the X_LIBS. Should not change non-jhbuild targets.
Created attachment 109389 [details] [review] fix link line ordering for jhbuild
(In reply to comment #0) > Hi, this patch fixes jhbuild for me. Basically jhbuild isn't building the X > libraries, so the pkg-config files for them have -L/usr/lib. 1) pkg-config automatically strips "-L/usr/lib" from its output, because it's cool like that. 2) X_LIBS isn't generated from pkg-config anyway, it's generated from AC_PATH_XTRA, which also goes out of its way to avoid outputting "-L/usr/lib". So I'm not sure how you're getting "-L/usr/lib" in $X_LIBS...
Colin, ping?
This may be a multilib-only issue. Looking at the pkg-config source, it detects whether the system is lib64, if it is then it strips out /usr/lib64 ONLY, whereas it should really strip out /usr/lib AND /usr/lib64. I'll refile this against pkg-config.