summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-09-04 10:52:50 +0200
committerCarl Hetherington <cth@carlh.net>2024-09-04 10:52:50 +0200
commit4e88d43f912390b1251b38ff107b0fb3b5015191 (patch)
treee16ce56d31d99de09b7ac85c4e1c95caae746161 /cscript
parent844c7cf3bbf9c1607b329a00bbffc3ea86a0ddab (diff)
Static boost is only on Centos 7, not other versions.v0.17.11
Diffstat (limited to 'cscript')
-rw-r--r--cscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/cscript b/cscript
index 728c45a..a753ca4 100644
--- a/cscript
+++ b/cscript
@@ -24,7 +24,7 @@ def build(target, options):
cmd = './waf configure --prefix=%s' % target.directory
if target.platform == 'linux':
cmd += ' --static'
- if target.distro == 'centos' or (target.distro == 'ubuntu' and target.version == '16.04'):
+ if (target.distro, target.version) in [('centos', '7'), ('ubuntu', '16.04')]:
cmd += ' --static-boost'
elif target.platform == 'windows':
cmd += f' --target-windows-{target.bits}'