Remove more variables from build environment

Remove the LIBRARY_PATH and CPATH environment variables before building
a package.
This commit is contained in:
Glenn Johnson 2016-07-01 20:59:14 -05:00
parent e837be1af9
commit 31e9ded768

View File

@ -266,6 +266,8 @@ def set_build_environment_variables(pkg, env):
# can affect how some packages find libraries. We want to make
# sure that builds never pull in unintended external dependencies.
env.unset('LD_LIBRARY_PATH')
env.unset('LIBRARY_PATH')
env.unset('CPATH')
env.unset('LD_RUN_PATH')
env.unset('DYLD_LIBRARY_PATH')