summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-05-11 04:28:24 (GMT)
committerGitHub <noreply@github.com>2017-05-11 04:28:24 (GMT)
commit968b6918a2e00134077a2603f33451cfa617f44d (patch)
treed03190457a2f890003a64c4731e84a9aa16eac5d /scripts
parent129e6d3fd13fa158a95685f9fae683ef89f9462a (diff)
parent8543414be6a9d38bdd451730ed3cc32bf39e5a21 (diff)
Merge pull request #713 from U-007D/check-for-cc-and-cxx
Added CT_TestAndAbort trivial sanity checks for CC and CXX to avoid l…
Diffstat (limited to 'scripts')
-rw-r--r--scripts/crosstool-NG.sh.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in
index 68d6847..1464f0f 100644
--- a/scripts/crosstool-NG.sh.in
+++ b/scripts/crosstool-NG.sh.in
@@ -60,6 +60,8 @@ CT_TestAndAbort "Don't set CPLUS_INCLUDE_PATH. It screws up the build." -n "${CP
CT_TestAndAbort "Don't set OBJC_INCLUDE_PATH. It screws up the build." -n "${OBJC_INCLUDE_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_TestAndAbort "Don't set CC. It screws up the build." -n "${CC}"
+CT_TestAndAbort "Don't set CXX. It screws up the build." -n "${CXX}"
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: