summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-01-28 22:22:37 +0000
committerCarl Hetherington <cth@carlh.net>2019-12-03 17:00:35 +0100
commit4b03c8f8d296074bc5984281dd6bc5e5180f7b2c (patch)
tree52e7e7d273220719e9d5fed2a0311a4a2ba74bf1 /cscript
parent06cd0286838a7a8533bc60e849b37b218168bac0 (diff)
Build statically on Linux.
Diffstat (limited to 'cscript')
-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')