diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-01-28 22:22:37 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-12-03 17:00:35 +0100 |
| commit | 4b03c8f8d296074bc5984281dd6bc5e5180f7b2c (patch) | |
| tree | 52e7e7d273220719e9d5fed2a0311a4a2ba74bf1 /cscript | |
| parent | 06cd0286838a7a8533bc60e849b37b218168bac0 (diff) | |
Build statically on Linux.
Diffstat (limited to 'cscript')
| -rw-r--r-- | cscript | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,8 +1,12 @@ def build(target, options): cmd = './waf configure --prefix=%s ' % target.directory + if target.platform == 'linux': + cmd += ' --static' + elif target.platform == 'windows': + cmd += ' --target-windows' + target.append_with_space('LIBS', '-lboost_system') target.append_with_space('LIBS', '-lboost_filesystem') target.command(cmd) - target.command('./waf') - target.command('./waf install') + target.command('./waf build install') |
