From 8520312f97680e8e6c25ccceaa8929b15e951ba1 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Fri, 14 Oct 2016 11:30:45 +1000 Subject: Check and link to the pangoft2 module with a mingw build if it exists This is necessary when pango has been built without all modules included as bundle_env_mingw.cc uses a function from the pango module and results a linker error: bundle_env_mingw.cc:114: undefined reference to `pango_ft2_font_map_get_type' Minimum pango version is taken from the official build scripts. --- gtk2_ardour/wscript | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/wscript b/gtk2_ardour/wscript index 5fe5062854..3fb77ce6d4 100644 --- a/gtk2_ardour/wscript +++ b/gtk2_ardour/wscript @@ -349,6 +349,7 @@ def configure(conf): atleast_version='2.18') autowaf.check_pkg(conf, 'ogg', uselib_store='OGG', atleast_version='1.1.2') autowaf.check_pkg(conf, 'x11', uselib_store='X11', atleast_version='1.1', mandatory=False) + autowaf.check_pkg(conf, 'pangoft2', uselib_store='PANGOFT2', atleast_version='1.36.8', mandatory=False) autowaf.check_pkg(conf, 'fontconfig', uselib_store='FONTCONFIG') @@ -582,6 +583,7 @@ def build(bld): if bld.env['build_target'] == 'mingw': obj.linkflags += ' -mwindows' + obj.use += [ 'PANGOFT2' ] if bld.is_defined('HAVE_SUIL'): obj.source += [ 'lv2_plugin_ui.cc' ] -- cgit v1.2.3