GNOME Bugzilla – Bug 53375
Correct example Makefiles to use pkg-config
Last modified: 2011-02-04 16:09:32 UTC
The gtk+ examples directory still uses the obsolete gtk-config command. The referenced URL contains a context diff that replaces gtk-config with pkg-config.
Patch looks OK except that options should go before args, i.e. "--cflags gtk+-2.0" rather than "gtk+-2.0 --cflags", the reason is that if you have the POSIXLY_CORRECT env variable set then options are not allowed after args, and this results in people getting confused.
Applied with a little bit of patch surgery to fix the order of arguments. Fri Nov 2 10:21:03 2001 Owen Taylor <otaylor@redhat.com> * examples/**/Makefile.am: Convert to use pkg-config rather than gtk-config. (#53375, Skip Montanaro)
The URL field has been removed from bugzilla.gnome.org. This URL was in the old URL field, and is being added as a comment so that the data is not lost. Please email bugmaster@gnome.org if you have any questions. URL: http://orca.mojam.com/~skip/gtk-examples.diffs