Fix tests on platforms that statically-link boost.
[libsub.git] / cscript
diff --git a/cscript b/cscript
index bf73d53115676b113b3a0fbda834f65d93645241..902717b4e4e9d4d89dfbc03c12c3073a4df85550 100644 (file)
--- a/cscript
+++ b/cscript
@@ -28,8 +28,8 @@ def build(target, options):
     cmd = './waf configure --prefix=%s' % target.directory
     if target.platform == 'linux':
         cmd += ' --static'
-        if target.distro == 'centos':
-            cmd += ' --disable-tests'
+        if target.distro == 'centos' or (target.distro == 'ubuntu' and target.version == '16.04'):
+            cmd += ' --static-boost-test'
     if target.debug:
         cmd += ' --enable-debug'
     if target.platform == 'windows':