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 <minux.ma@gmail.com>
This commit is contained in:
minux 2012-12-22 19:41:36 +08:00 committed by Xiangfu
parent ea5ad1478a
commit b1377a323b

View File

@ -43,6 +43,10 @@ else
DEPEND = $(DEPEND_quiet) DEPEND = $(DEPEND_quiet)
RANLIB = $(RANLIB_quiet) RANLIB = $(RANLIB_quiet)
endif 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 ---------------------------------------------------------- # ----- Dependencies ----------------------------------------------------------