aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>2019-02-05 12:03:42 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2019-02-18 17:15:27 +0100
commit7539ab6c5bb02142079286003573a6bfbf1f67bb (patch)
tree6e656ef523c0ab0d30e60b83fd447c7a09a7a425 /Makefile
parent774decc2160ba309bfb9adc33822b3bc1478559a (diff)
downloadbuildroot-7539ab6c5bb02142079286003573a6bfbf1f67bb.tar.gz
buildroot-7539ab6c5bb02142079286003573a6bfbf1f67bb.tar.bz2
Makefile: unexport 'PLATFORM' and 'OS' environment variables
Some package builds may fail when environment variables are present with the same names as make variables in a package. This is a bigger problem for environment variables with generic names, like 'PLATFORM' and 'OS'. 'PLATFORM' is for example a problem for host-acl. Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com> (cherry picked from commit d3e535a839a893d4721240278fada4652544b60c) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c07ff3dae5..2ee7f92aa9 100644
--- a/Makefile
+++ b/Makefile
@@ -431,6 +431,8 @@ unexport TERMINFO
unexport MACHINE
unexport O
unexport GCC_COLORS
+unexport PLATFORM
+unexport OS
GNU_HOST_NAME := $(shell support/gnuconfig/config.guess)