diff options
author | Erik Inge Bolsø <knan-ct@anduin.net> | 2012-05-13 01:09:20 +0200 |
---|---|---|
committer | Erik Inge Bolsø <knan-ct@anduin.net> | 2012-05-13 01:09:20 +0200 |
commit | 8ab3a18e21355302a7cc7302259da322ea2467c8 (patch) | |
tree | 484f10886d6cb849b64456a5ec35dd61a416407d | |
parent | f1be07d21054b32bb514f3e102ffa2a854353991 (diff) | |
download | crosstool-ng-8ab3a18e21355302a7cc7302259da322ea2467c8.tar.gz crosstool-ng-8ab3a18e21355302a7cc7302259da322ea2467c8.tar.bz2 crosstool-ng-8ab3a18e21355302a7cc7302259da322ea2467c8.zip |
scripts: unset LIBRARY_PATH and LPATH
These environment variables set search path for gcc at link time, which can break the build.
Signed-off-by: Erik Inge Bolsø <knan-ct@anduin.net>
Message-Id: <alpine.BSF.2.00.1205130131550.21551@anduin.net>
PatchWork-Id: 186872
-rw-r--r-- | scripts/crosstool-NG.sh.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in index 788faa9d..66167f88 100644 --- a/scripts/crosstool-NG.sh.in +++ b/scripts/crosstool-NG.sh.in @@ -39,6 +39,10 @@ CT_DoLog INFO "Performing some trivial sanity checks" CT_TestAndAbort "Don't set LD_LIBRARY_PATH. It screws up the build." -n "${LD_LIBRARY_PATH}" CT_TestAndAbort "Don't set CFLAGS. It screws up the build." -n "${CFLAGS}" CT_TestAndAbort "Don't set CXXFLAGS. It screws up the build." -n "${CXXFLAGS}" +CT_Test "LIBRARY_PATH screws up the build. Resetting." -n "${LIBRARY_PATH}" +export LIBRARY_PATH= +CT_Test "LPATH screws up the build. Resetting." -n "$LPATH" +export LPATH= CT_Test "GREP_OPTIONS screws up the build. Resetting." -n "${GREP_OPTIONS}" export GREP_OPTIONS= # Workaround against openSUSE 12.1 that breaks ./configure for cross-compilation: |