summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-01-28 22:22:37 +0000
committerCarl Hetherington <cth@carlh.net>2016-01-28 22:22:37 +0000
commiteae4ef1dea28868dd61dab68a37b7ee6d1181036 (patch)
tree5385107ae7ea275578dfb653b67718f9c7c4a88f
parent87c5f40b33fb7175fdd77cdbb82810baf9b31a00 (diff)
Build statically on Linux.
-rw-r--r--cscript8
1 files changed, 6 insertions, 2 deletions
diff --git a/cscript b/cscript
index 20b22ff..d97e1d9 100644
--- a/cscript
+++ b/cscript
@@ -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')