From 3fa1dc2bc3d353692ea9b2cd9cdb685dd94b85f4 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 1 Jul 2013 22:40:44 +0100 Subject: Try to fix linking to wxWidgets deps with --static. --- src/wx/wscript | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/wx/wscript b/src/wx/wscript index 4bc79d6bb..acff351fa 100644 --- a/src/wx/wscript +++ b/src/wx/wscript @@ -25,8 +25,11 @@ sources = """ """ def configure(conf): - conf.check_cfg(msg='Checking for wxWidgets', package='', path=conf.options.wx_config, - args='--cppflags --cxxflags --libs', + wx_args = '--cppflags --cxxflags --libs' + if conf.env.STATIC: + wx_args += ' --static' + + conf.check_cfg(msg='Checking for wxWidgets', package='', path=conf.options.wx_config, args=wx_args uselib_store='WXWIDGETS', mandatory=True) if conf.env.STATIC: -- cgit v1.2.3