From b1377a323b8484167c48651c8af209d89d4ca306 Mon Sep 17 00:00:00 2001 From: minux Date: Sat, 22 Dec 2012 19:41:36 +0800 Subject: [PATCH] Makefile.common: don't export CC, AR, ... to sub-make Or we might prepend "@echo .." two times. Reproduced by: CC=gcc make Signed-off-by: minux --- Makefile.common | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile.common b/Makefile.common index 834b815..d454321 100644 --- a/Makefile.common +++ b/Makefile.common @@ -43,6 +43,10 @@ else DEPEND = $(DEPEND_quiet) RANLIB = $(RANLIB_quiet) endif +# because all sub Makefiles also include this file, no need to pass down +# these variables. or we risk producing "@echo ... && @echo ... && cc .." +# which is not correct. +unexport CC AR DEPEND RANLIB # ----- Dependencies ----------------------------------------------------------