SCons now propagates the LD_LIBRARY_PATH environment variable by default

This commit is contained in:
Ray Speth 2012-07-14 21:18:00 +00:00
parent 7194bf96d4
commit 0a460a975f

View file

@ -230,6 +230,7 @@ else:
defaults.singleLibrary = False defaults.singleLibrary = False
defaults.fsLayout = 'compact' if env['OS'] == 'Windows' else 'standard' defaults.fsLayout = 'compact' if env['OS'] == 'Windows' else 'standard'
defaults.env_vars = 'LD_LIBRARY_PATH' if 'LD_LIBRARY_PATH' in os.environ else ''
# ************************************** # **************************************
# *** Read user-configurable options *** # *** Read user-configurable options ***
@ -396,7 +397,7 @@ opts.AddVariables(
"""Environment variables to propagate through to SCons. Either the """Environment variables to propagate through to SCons. Either the
string "all" or a comma separated list of variable names, e.g. string "all" or a comma separated list of variable names, e.g.
'LD_LIBRARY_PATH,HOME'""", 'LD_LIBRARY_PATH,HOME'""",
''), defaults.env_vars),
('cxx_flags', ('cxx_flags',
'Compiler flags passed to the C++ compiler only.', 'Compiler flags passed to the C++ compiler only.',
defaults.cxxFlags), defaults.cxxFlags),