GNOME Bugzilla – Bug 324761
gimptool should check GTK/Glib flags at runtime
Last modified: 2008-01-15 13:03:36 UTC
Currently, gimptool, by default and without PKG_CONFIG set, returns values for --cflags and --libs that were determined at gimp compile-time. However, I'm not sure there shouldn't be any reason for this, and gimptool should check GTK and Glib's flags at runtime instead.
I don't see a reason why we should not make such a change.
Could we have the patch that you are using for the debian package attached to this bug report, please?
All I'm doing is this at the top of gimptool-2.0.in: if [ -z "${PKG_CONFIG}" ]; then PKG_CONFIG=/usr/bin/pkg-config fi I'd think this shouldn't be the final fix, but instead at least have it be more integrated with the rest of the checks & test for the actual existence of pkg-config.
Created attachment 56804 [details] [review] somewhat improved patch
I have now applied this change to both branches. Closing as FIXED. 2006-01-06 Sven Neumann <sven@gimp.org> * gimptool-2.0.in: if available use pkg-config to determine compiler and linker flags at runtime. Fixes bug #324761.