summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-09-06 16:58:17 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-09-06 16:58:17 -0400
commit628c3636dcb5362a9c60c9ab0aee8bc9b8ee38a4 (patch)
tree247eb34c5b9574973d4f9ddea239401f371428c0 /SConstruct
parent26477952deaa4421855a342a6dd03ff6fdb5f6e2 (diff)
downloadgpsd-628c3636dcb5362a9c60c9ab0aee8bc9b8ee38a4.tar.gz
Accept SHLINKFLAGS from the environment.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct9
1 files changed, 5 insertions, 4 deletions
diff --git a/SConstruct b/SConstruct
index 442e92fb..85e242a7 100644
--- a/SConstruct
+++ b/SConstruct
@@ -161,9 +161,10 @@ for (name, default, help) in pathopts:
env['VERSION'] = gpsd_version
env['PYTHON'] = sys.executable
-# Set defaults from environment. Note that scons doesn't cope well with
-# multi-word CPPFLAGS and LDFLAGS values; you'll have to explicitly quote
-# them or (better yet) use the "=" form of GNU option settings.
+# Set defaults from environment. Note that scons doesn't cope well
+# with multi-word CPPFLAGS/LDFLAGS/SHLINKFLAGS values; you'll have to
+# explicitly quote them or (better yet) use the "=" form of GNU option
+# settings.
env['STRIP'] = "strip"
env['CHRPATH'] = 'chrpath'
for i in ["AR", "ARFLAGS", "CCFLAGS", "CFLAGS", "CC", "CXX", "CXXFLAGS", "STRIP", "CHRPATH", "LD", "TAR"]:
@@ -175,7 +176,7 @@ for i in ["AR", "ARFLAGS", "CCFLAGS", "CFLAGS", "CC", "CXX", "CXXFLAGS", "STRIP"
env.Replace(**{j: Split(os.getenv(i))})
else:
env.Replace(**{j: os.getenv(i)})
-for flags in ["LDFLAGS", "CPPFLAGS"]:
+for flags in ["LDFLAGS", "SHLINKFLAGS", "CPPFLAGS"]:
if os.environ.has_key(flags):
env.MergeFlags([os.getenv(flags)])