diff options
author | Petr Rockai <me@mornfall.net> | 2013-09-07 11:02:50 +0200 |
---|---|---|
committer | Petr Rockai <me@mornfall.net> | 2013-11-16 13:53:48 +0100 |
commit | 7c3f07f97c476111e36469a72fe91eb87942d2ac (patch) | |
tree | 28065709aed27acc1d1e35e0b3e6ab6cf8de579b /pkgs/build-support | |
parent | e3f2e2e10b8cf2065800358a90ef04ea41e708eb (diff) | |
download | nixlib-7c3f07f97c476111e36469a72fe91eb87942d2ac.tar nixlib-7c3f07f97c476111e36469a72fe91eb87942d2ac.tar.gz nixlib-7c3f07f97c476111e36469a72fe91eb87942d2ac.tar.bz2 nixlib-7c3f07f97c476111e36469a72fe91eb87942d2ac.tar.lz nixlib-7c3f07f97c476111e36469a72fe91eb87942d2ac.tar.xz nixlib-7c3f07f97c476111e36469a72fe91eb87942d2ac.tar.zst nixlib-7c3f07f97c476111e36469a72fe91eb87942d2ac.zip |
clang-wrapper: Guard against LD_LIBRARY_PATH.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/clang-wrapper/clang-wrapper.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/build-support/clang-wrapper/clang-wrapper.sh b/pkgs/build-support/clang-wrapper/clang-wrapper.sh index 2052d2c2eb4c..4f710856868b 100644 --- a/pkgs/build-support/clang-wrapper/clang-wrapper.sh +++ b/pkgs/build-support/clang-wrapper/clang-wrapper.sh @@ -134,6 +134,12 @@ if test -n "$NIX_CLANG_WRAPPER_EXEC_HOOK"; then source "$NIX_CLANG_WRAPPER_EXEC_HOOK" fi +# We nuke LD_LIBRARY_PATH here, because clang dynamically links to LLVM. +# Unfortunately, when such clang is used to build LLVM again, it can get in +# trouble temporarily binding to the build-directory versions of the libraries +# (the buildsystem sets LD_LIBRARY_PATH). That is very undesirable and can +# cause mysterious failures. +LD_LIBRARY_PATH= # Call the real `clang'. Filter out warnings from stderr about unused # `-B' flags, since they confuse some programs. Deep bash magic to |