summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2016-05-18 03:22:12 -0400
committerEric S. Raymond <esr@thyrsus.com>2016-05-18 03:22:12 -0400
commitc44df08917e1d188a6bbecc7999631e030136d74 (patch)
tree8929eb8e04c867b5a11efd835061990a1aa76633 /SConstruct
parent4ed653adc678d155dcae4d02a279d9c1eae00dda (diff)
downloadgpsd-c44df08917e1d188a6bbecc7999631e030136d74.tar.gz
Attempt fix for timservice build bug.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 2 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index 7a2bc8e4..454a7160 100644
--- a/SConstruct
+++ b/SConstruct
@@ -248,14 +248,14 @@ opts.Save('.scons-option-cache', env)
env.SConsignFile(".sconsign.dblite")
# Minimal build turns off every option not set on the command line,
-if env['minimal']:
+if 'minimal' in ARGUMENTS:
for (name, default, help) in boolopts:
# Ensure gpsd and gpsdclients are always enabled unless explicitly turned off.
if default is True and not ARGUMENTS.get(name) and not (name is "gpsd" or name is "gpsdclients"):
env[name] = False
# Time-service build = stripped-down and some diagnostic tools
-if env['timeservice']:
+if 'timeservice' in ARGUMENTS:
timerelated = ("gpsd", "ncurses", "ntp", "ntpshm", "pps", "oscillator")
for (name, default, help) in boolopts:
if default is True and not ARGUMENTS.get(name) and not name in timerelated: