From 2c649045197156221cc1d3d6328abb1c405db700 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Tue, 19 Jun 2007 15:19:27 +0000 Subject: [PATCH] Hide troublesome environment variables from sub processes (E.G. screws up gdb, busybox, ..) --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index e3c18cacac..63535e182b 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 ############################################################# # -- 2.30.2