mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-01-06 00:31:10 +01:00
- add LD_LIBRARY_PATH to propagated environment variables as it is required for some compiler installations.
This commit is contained in:
parent
a11e47d9ad
commit
0a899589c2
@ -57,8 +57,9 @@ def make_environ_vars():
|
|||||||
"""Returns a dictionnary with environment variable to use when compiling."""
|
"""Returns a dictionnary with environment variable to use when compiling."""
|
||||||
# PATH is required to find the compiler
|
# PATH is required to find the compiler
|
||||||
# TEMP is required for at least mingw
|
# TEMP is required for at least mingw
|
||||||
|
# LD_LIBRARY_PATH & co is required on some system for the compiler
|
||||||
vars = {}
|
vars = {}
|
||||||
for name in ('PATH', 'TEMP', 'TMP'):
|
for name in ('PATH', 'TEMP', 'TMP', 'LD_LIBRARY_PATH', 'LIBRARY_PATH'):
|
||||||
if name in os.environ:
|
if name in os.environ:
|
||||||
vars[name] = os.environ[name]
|
vars[name] = os.environ[name]
|
||||||
return vars
|
return vars
|
||||||
|
Loading…
Reference in New Issue
Block a user