- add LD_LIBRARY_PATH to propagated environment variables as it is required for some compiler installations.

This commit is contained in:
Baptiste Lepilleur 2010-03-13 07:55:46 +00:00
parent a11e47d9ad
commit 0a899589c2

View File

@ -57,8 +57,9 @@ def make_environ_vars():
"""Returns a dictionnary with environment variable to use when compiling."""
# PATH is required to find the compiler
# TEMP is required for at least mingw
# LD_LIBRARY_PATH & co is required on some system for the compiler
vars = {}
for name in ('PATH', 'TEMP', 'TMP'):
for name in ('PATH', 'TEMP', 'TMP', 'LD_LIBRARY_PATH', 'LIBRARY_PATH'):
if name in os.environ:
vars[name] = os.environ[name]
return vars