Attempt to fix OS X build failure.
[libcxml.git] / cscript
diff --git a/cscript b/cscript
index 5e7c29f62a4f95ff9edeb21916eab34cbed26500..0a3f59e16ce4b0dd4dd682088d6d74a18ec18823 100644 (file)
--- a/cscript
+++ b/cscript
@@ -1,9 +1,8 @@
-
-def build(env, target):
-    cmd = './waf configure --prefix=%s' % env.work_dir_cscript()
-    if target.platform == 'windows':
+def build(target, options):
+    cmd = './waf configure --prefix=%s' % target.work_dir_cscript()
+    if target.platform == 'linux':
+        cmd += ' --static --disable-tests'
+    elif target.platform == 'windows':
         cmd += ' --target-windows'
-    env.command(cmd)
-    env.command('./waf build install')
-
-
+    target.command(cmd)
+    target.command('./waf build install')