summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-03-27 18:51:30 -0700
committerGary E. Miller <gem@rellim.com>2019-03-27 18:52:07 -0700
commitf718f6779fd588c5252f8d14818cf2d474f896e7 (patch)
tree56126fb7c25d2a317e77cfd79520099414b7be6e /SConstruct
parentd09c6bf5a9f0a56cf3e510f87fe38f08acb57c6c (diff)
downloadgpsd-f718f6779fd588c5252f8d14818cf2d474f896e7.tar.gz
SConstruct: partial fix for scons 3.0.5
env is no longer the open playground that it used to be...
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct12
1 files changed, 6 insertions, 6 deletions
diff --git a/SConstruct b/SConstruct
index a7022341..719d6c0f 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1013,12 +1013,12 @@ else:
if sys.platform.startswith('darwin'):
try:
- tool = config.CheckProg('install_name_tool')
+ osx_lib_tool = config.CheckProg('install_name_tool')
except AttributeError:
- tool = 'install_name_tool' # Just assume it's there if old SCons
+ # Just assume it's there if old SCons
+ osx_lib_tool = 'install_name_tool'
else:
- tool = None
-env['osx_lib_tool'] = tool
+ osx_lib_tool = None
# Set up configuration for target Python
@@ -1246,8 +1246,8 @@ else:
def LibraryInstall(env, libdir, sources, version):
inst = env.InstallVersionedLib(libdir, sources, SHLIBVERSION=version)
- if env['osx_lib_tool']:
- toolcmd = '%s -id $TARGET $TARGET' % env['osx_lib_tool']
+ if osx_lib_tool:
+ toolcmd = '%s -id $TARGET $TARGET' % osx_lib_tool
env.AddPostAction(inst, toolcmd)
return inst