summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2016-04-14 16:58:32 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-04-15 09:48:56 +0200
commit376737d99dfe7ff0347dcc278e16001573314aa5 (patch)
tree67b015d33ec485c4fa13a7658bb568d2390baae9 /Makefile
parentb6c40619006e78db7bd6ac10660f17803b2f1352 (diff)
downloadbuildroot-376737d99dfe7ff0347dcc278e16001573314aa5.tar.gz
buildroot-376737d99dfe7ff0347dcc278e16001573314aa5.zip
Makefile: reset LD and AR environment variables
The goal is to fix the compilation of perf (from linux) when LD or AR variables are inherited from the environment. After the linux upstream commits 5ef7bbb09f7b ("perf tools: Allow to specify custom linker command") and 3c71ba3f80bb ("perf tools: Really allow to specify custom CC, AR or LD") CC, AR, and LD variables are not overridden if they are inherited. In case of a cross compilation, it results in an inconsistent state: CC is overridden but not LD and AR. Linux-patch: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=5ef7bbb09f7b Linux-patch: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=3c71ba3f80bb Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ea8b1e4e51..55735ea735 100644
--- a/Makefile
+++ b/Makefile
@@ -343,6 +343,8 @@ ifeq ($(BR2_HAVE_DOT_CONFIG),y)
unexport CROSS_COMPILE
unexport ARCH
unexport CC
+unexport LD
+unexport AR
unexport CXX
unexport CPP
unexport RANLIB
OpenPOWER on IntegriCloud