Will change the current `pkg-config --libs gtk+-2.0` over to $(WX_GTK2_LIBS)
The new variable will be set to $GTK2_LIBS (i.e. the same thing) on wxGTK only.
Makefile.am:
libwxaui_la_LDFLAGS = $(WX_GTK2_LIBS)
We also need to add these GTK+ libraries to wxAUI linking, since wxAUI uses some
functions from GTK+ directly (without wx) and that fails to link on certain platforms.
Likewise there will be a similarly autotoolized variable $(WX_MAC_LIBS) that
will be set to the usual $(WX_LIBS) on wxMac, and nothing on other platforms.
Makefile.am:
whatever_la_LIBADD = $(WX_MAC_LIBS) ../../sdk/libcodeblocks.la
All plugins will need to have a line like this, or they fail to build when using autotools.
(at least they do when following the Mac OS X build procedure outlined on the Wiki ?)
This is so that: a) it will stop complaining about and/or linking to GTK+ when compiling for other wx Toolkits
b) I will stop having to patch each and every Code::Blocks release for wxMac which is a pain in the ... neck.
https://developer.berlios.de/bugs/?func=detailbug&bug_id=8821&group_id=5358
http://developer.berlios.de/patch/?func=detailpatch&patch_id=1395&group_id=5358
It shouldn't change anything in practice for other usage.