From 57fa349a9792a629e4ed2d89e1309cc96dcc39af Mon Sep 17 00:00:00 2001 From: Will Deacon Date: Thu, 4 Jun 2015 16:25:36 +0100 Subject: [PATCH] Don't inherit CFLAGS and LDFLAGS from the environment kvmtool doesn't build with arbitrary flags, so let's clear CFLAGS and LDFLAGS by default at the top of the Makefile, allowing people to add additional options there if they really want to. Reported by Dave Jones, who ended up passing -std=gnu99 by mistake. Reported-by: Dave Jones Signed-off-by: Will Deacon --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index e8f5485..6032d0d 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,9 @@ include config/utilities.mak include config/feature-tests.mak CC := $(CROSS_COMPILE)gcc +CFLAGS := LD := $(CROSS_COMPILE)ld +LDFLAGS := FIND := find CSCOPE := cscope