diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-01 22:40:44 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-01 22:40:44 +0100 |
| commit | 3fa1dc2bc3d353692ea9b2cd9cdb685dd94b85f4 (patch) | |
| tree | e60dd48b766b05b0776ea0f975c1e8a0a902cea0 | |
| parent | e6dd32ca6a32f364dafd99b0fe4bbb6119afb9d7 (diff) | |
Try to fix linking to wxWidgets deps with --static.
| -rw-r--r-- | src/wx/wscript | 7 |
1 files changed, 5 insertions, 2 deletions
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: |
