summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2007-06-19 15:19:27 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2007-06-19 15:19:27 +0000
commit2c649045197156221cc1d3d6328abb1c405db700 (patch)
tree67c5c0508a08ca587284d44f8578652d3902941d
parenta7dae1919cf631a5cc95dc357bdf2acb58125669 (diff)
downloadbuildroot-novena-2c649045197156221cc1d3d6328abb1c405db700.tar.gz
buildroot-novena-2c649045197156221cc1d3d6328abb1c405db700.zip
Hide troublesome environment variables from sub processes
(E.G. screws up gdb, busybox, ..)
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e3c18caca..63535e182 100644
--- a/Makefile
+++ b/Makefile
@@ -46,6 +46,13 @@ ifeq ($(strip $(BR2_HAVE_DOT_CONFIG)),y)
cc-option = $(shell if $(TARGET_CC) $(TARGET_CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
> /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)
+#############################################################
+#
+# Hide troublesome environment variables from sub processes
+#
+#############################################################
+unexport CROSS_COMPILE
+unexport ARCH
#############################################################
#