From 2e93b68257aa88ccdc127ca119304a5f4c76b7c5 Mon Sep 17 00:00:00 2001 From: Fathi Boudra Date: Wed, 22 Mar 2017 17:36:53 +0200 Subject: [PATCH] selftests: lib: allow to override CC in the top-level Makefile Relax CC assignment to allow to override CC in the top-level Makefile. Signed-off-by: Denys Dmytriyenko --- tools/testing/selftests/lib.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/testing/selftests/lib.mk +++ b/tools/testing/selftests/lib.mk @@ -1,6 +1,6 @@ # This mimics the top-level Makefile. We do it explicitly here so that this # Makefile can operate with or without the kbuild infrastructure. -CC := $(CROSS_COMPILE)gcc +CC ?= $(CROSS_COMPILE)gcc define RUN_TESTS @for TEST in $(TEST_PROGS); do \