summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBryan Hundven <bryanhundven@gmail.com>2016-02-04 10:33:58 (GMT)
committerBryan Hundven <bryanhundven@gmail.com>2016-02-04 10:33:58 (GMT)
commit6702ff8debf1bc1357cb16cddedb4a2087c80d22 (patch)
tree7cfda46a1e9921af89937a2add306ce3587e8ca4 /scripts
parenta812405b6cfc8408449844bdc96657af338a6ed1 (diff)
parent10af186f5c9a45c1414c6f868d3f2ff254f6b561 (diff)
Merge pull request #330 from bhundven/cpath_testorabort
env: Bail out if CPATH and friends are set
Diffstat (limited to 'scripts')
-rw-r--r--scripts/crosstool-NG.sh.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in
index 568c73e..9297e3b 100644
--- a/scripts/crosstool-NG.sh.in
+++ b/scripts/crosstool-NG.sh.in
@@ -55,6 +55,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 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 CPATH. It screws up the build." -n "${CPATH}"
+CT_TestAndAbort "Don't set C_INCLUDE_PATH. It screws up the build." -n "${C_INCLUDE_PATH}"
+CT_TestAndAbort "Don't set CPLUS_INCLUDE_PATH. It screws up the build." -n "${CPLUS_INCLUDE_PATH}"
+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_Test "GREP_OPTIONS screws up the build. Resetting." -n "${GREP_OPTIONS}"