# HG changeset patch # User Erik Inge Bolsø # Date 1336864160 -7200 # Node ID e43643e41fb994f4e33c65ca750b822fba2d57bd # Parent f46a1d105896c89f697ff7f2c8ebb6b7b8403d5d 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ø Message-Id: PatchWork-Id: 186872 diff -r f46a1d105896 -r e43643e41fb9 scripts/crosstool-NG.sh.in --- a/scripts/crosstool-NG.sh.in Sun Sep 23 11:59:28 2012 +0900 +++ b/scripts/crosstool-NG.sh.in Sun May 13 01:09:20 2012 +0200 @@ -39,6 +39,10 @@ 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: