Fix centos build.
authorCarl Hetherington <cth@carlh.net>
Tue, 5 May 2015 08:22:50 +0000 (09:22 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 5 May 2015 08:22:50 +0000 (09:22 +0100)
cscript

diff --git a/cscript b/cscript
index 7747d7b0ed02cba3cd3cd7d2b21c881faf03107b..f7e34b634d8248cbcc3937463540f68d01663068 100644 (file)
--- a/cscript
+++ b/cscript
@@ -2,6 +2,10 @@ def build(target, options):
     cmd = './waf configure --prefix=%s' % target.directory
     if target.platform == 'linux':
         cmd += ' --static'
+        if target.distro == 'centos':
+            # Centos builds using static boost, which means tests don't
+            # build as test/tests.cc defines BOOST_TEST_DYN_LINK
+            cmd += ' --disable-tests'
     elif target.platform == 'windows':
         cmd += ' --target-windows'
     target.command(cmd)