# HG changeset patch # User "Yann E. MORIN" # Date 1348613609 -7200 # Node ID bb9c279516dde3a210de6332db68f3a0d734eb4a # Parent f36c207348efc55653a037a7e17654c4ff388b86 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" diff -r f36c207348ef -r bb9c279516dd scripts/crosstool-NG.sh.in --- a/scripts/crosstool-NG.sh.in Thu Sep 20 11:20:16 2012 +0800 +++ b/scripts/crosstool-NG.sh.in Wed Sep 26 00:53:29 2012 +0200 @@ -37,12 +37,10 @@ # 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: