diff options
author | Yann E. MORIN" <yann.morin.1998@free.fr> | 2012-09-26 00:53:29 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@free.fr> | 2012-09-26 00:53:29 +0200 |
commit | 4828ca9541054fe09a1495fa965f5c0ccf5a1dd2 (patch) | |
tree | 5bae72d4c5c48c68f2964bf0ccb2633c58ef6ce7 | |
parent | fd26fc9b1de1734097d5d0c169e1fa5c40d6ad26 (diff) | |
download | crosstool-ng-4828ca9541054fe09a1495fa965f5c0ccf5a1dd2.tar.gz crosstool-ng-4828ca9541054fe09a1495fa965f5c0ccf5a1dd2.tar.bz2 crosstool-ng-4828ca9541054fe09a1495fa965f5c0ccf5a1dd2.zip |
scripts: exporting (even empty) LIBRARY_PATH and/or LPATH breaks gcc
If either LIBRARY_PATH or LPATH is set, even to the empty string,
the gcc build breaks.
Fix that by bailing-out rather than re-setting.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
-rw-r--r-- | scripts/crosstool-NG.sh.in | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in index 66167f88..d0a4129a 100644 --- a/scripts/crosstool-NG.sh.in +++ b/scripts/crosstool-NG.sh.in @@ -37,12 +37,10 @@ CT_SanitizePath # Some sanity checks in the environment and needed tools 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 LIBRARY_PATH. It screws up the build." -n "${LIBRARY_PATH}" +CT_TestAndAbort "Don't set LPATH. It screws up the build." -n "${LPATH}" 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: |