Build statically on Linux.
authorCarl Hetherington <cth@carlh.net>
Thu, 28 Jan 2016 22:22:37 +0000 (22:22 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 3 Dec 2019 16:00:35 +0000 (17:00 +0100)
cscript

diff --git a/cscript b/cscript
index 20b22ff4ef42adc0292b39295d9fea2dd73df5c6..d97e1d9927a6db00640db50c54eb222932e9d206 100644 (file)
--- 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')