Bug #19116 2013-09-05 07:55
mojca
source_exporter might need to link against fontconfig
The following is a quick workaround that was needed to make Code::Blocks compile against GTK-based wxWidgets 2.8 installation on Mac OS X. libexported had to be compiled with -lfontconfig LDFLAG, else it didn't work. I'm not sure what the proper patch should be, but one should somehow account for the need of fontconfig (if/when needed).
--- src/plugins/contrib/source_exporter/Makefile.am.orig
+++ src/plugins/contrib/source_exporter/Makefile.am
@@ -12,7 +12,7 @@ pluginlib_LTLIBRARIES = libexporter.la
libexporter_la_CPPFLAGS = -DwxPDF_USE_WXMODULE=0
-libexporter_la_LDFLAGS = -module -version-info 0:1:0 -shared -no-undefined -avoid-version
+libexporter_la_LDFLAGS = -module -version-info 0:1:0 -shared -no-undefined -avoid-version -lfontconfig
libexporter_la_LIBADD = $(PLUGIN_WX_LIBS) ../../../sdk/libcodeblocks.la \
wxPdfDocument/libwxPdfDocument.la
--- src/plugins/contrib/source_exporter/Makefile.in.orig
+++ src/plugins/contrib/source_exporter/Makefile.in
@@ -392,7 +392,7 @@ INCLUDES = $(WX_CXXFLAGS) \
pluginlibdir = $(pkglibdir)/plugins
pluginlib_LTLIBRARIES = libexporter.la
libexporter_la_CPPFLAGS = -DwxPDF_USE_WXMODULE=0
-libexporter_la_LDFLAGS = -module -version-info 0:1:0 -shared -no-undefined -avoid-version
+libexporter_la_LDFLAGS = -module -version-info 0:1:0 -shared -no-undefined -avoid-version -lfontconfig
libexporter_la_LIBADD = $(PLUGIN_WX_LIBS) ../../../sdk/libcodeblocks.la \
wxPdfDocument/libwxPdfDocument.la
- Category
- Group
- Platform:Mac
- Status
- Open
- Close date
- Assigned to
History
Just a note: this might not be the appropriate solution in all cases. In particular on Carbon-based wxWidgets 2.8, fontconfig might not be installed at all. Thus a better fix is needed.