mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 05:51:45 -09:00
Hide troublesome environment variables from sub processes
(E.G. screws up gdb, busybox, ..)
This commit is contained in:
7
Makefile
7
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 \
|
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 ;)
|
> /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)
|
||||||
|
|
||||||
|
#############################################################
|
||||||
|
#
|
||||||
|
# Hide troublesome environment variables from sub processes
|
||||||
|
#
|
||||||
|
#############################################################
|
||||||
|
unexport CROSS_COMPILE
|
||||||
|
unexport ARCH
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user