Skip to contentSkip to conversation

tools/perf: Fix cross compilation

PATCH New Michael Ellerman 1 participant 1 message Dec 12, 2013 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/perf: Fix cross compilation

Commit b6aa997 "Add feature check core code" added feature checking logic in config/feature-checks/Makefile but didn't use the CROSS_COMPILE value.

Fix it by prefixing $(CC), as is done in Makefile.perf.

---
 tools/perf/config/feature-checks/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/config/feature-checks/Makefile +1 -1
index bc86462..f3946db 100644
@@ -28,7 +28,7 @@ FILES=					\
 	test-stackprotector-all		\
 	test-timerfd
 
-CC := $(CC) -MD
+CC := $(CROSS_COMPILE)$(CC) -MD
 
 all: $(FILES)
 
Signature · 1 line
1.8.3.2