Skip to content

Commit

Permalink
SCons now propagates the LD_LIBRARY_PATH environment variable by default
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Jul 14, 2012
1 parent 7194bf9 commit 0a460a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ else:
defaults.singleLibrary = False

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 ***
Expand Down Expand Up @@ -396,7 +397,7 @@ opts.AddVariables(
"""Environment variables to propagate through to SCons. Either the
string "all" or a comma separated list of variable names, e.g.
'LD_LIBRARY_PATH,HOME'""",
''),
defaults.env_vars),
('cxx_flags',
'Compiler flags passed to the C++ compiler only.',
defaults.cxxFlags),
Expand Down

0 comments on commit 0a460a9

Please sign in to comment.