Bug #19115 2013-09-05 07:49
mojca
MouseSap's Makefile isn't including GTK libs
I'm attaching a patch against the released version of Code::Blocks that was needed to make it compile against GTK-based wxWidgets 2.8 installation on Mac.
One needs to add $(WX_GTK2_LIBS) to
libMouseSap_la_LDFLAGS = $(WX_GTK2_LIBS) ...
- Category
- Group
- Platform:Mac
- Status
- Closed
- Close date
- 2013-10-02 17:05
- Assigned to
History
OK, it seems that there is no "attach" button anywhere, so here it is (see also http://trac.macports.org/browser/trunk/dports/devel/codeblocks/files/patch-MouseSap-Makefile.am):
--- src/plugins/contrib/MouseSap/Makefile.am.orig
+++ src/plugins/contrib/MouseSap/Makefile.am
@@ -7,7 +7,7 @@ pluginlibdir = $(pkglibdir)/plugins
pluginlib_LTLIBRARIES = libMouseSap.la
-libMouseSap_la_LDFLAGS = -module -version-info 0:1:0 -shared -no-undefined -avoid-version
+libMouseSap_la_LDFLAGS = $(WX_GTK2_LIBS) -module -version-info 0:1:0 -shared -no-undefined -avoid-version
libMouseSap_la_LIBADD = $(PLUGIN_WX_LIBS) ../../../sdk/libcodeblocks.la
--- src/plugins/contrib/MouseSap/Makefile.in.orig
+++ src/plugins/contrib/MouseSap/Makefile.in
@@ -347,7 +347,7 @@ INCLUDES = $(WX_CXXFLAGS) \
pluginlibdir = $(pkglibdir)/plugins
pluginlib_LTLIBRARIES = libMouseSap.la
-libMouseSap_la_LDFLAGS = -module -version-info 0:1:0 -shared -no-undefined -avoid-version
+libMouseSap_la_LDFLAGS = $(WX_GTK2_LIBS) -module -version-info 0:1:0 -shared -no-undefined -avoid-version
libMouseSap_la_LIBADD = $(PLUGIN_WX_LIBS) ../../../sdk/libcodeblocks.la
libMouseSap_la_SOURCES = MouseSap.cpp
noinst_HEADERS = MouseSap.h
Maybe this is fixed in trunk (but I'm unable to test). I see that $(WX_GTK2_LIBS) has been added to libMouseSap_la_LIBADD.
This bug is now fixed in HEAD.
Thank you for reporting it.