aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable.patch
blob: 248d6cc021f68c4d031fcb9271494865a766abe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From a1c255983169e094c18d82131939b2b66e581000 Mon Sep 17 00:00:00 2001
From: Dariusz Pelowski <dariusz.pelowski@gmail.com>
Date: Sun, 5 Nov 2017 12:39:21 +0100
Subject: [PATCH] kvmtool: add EXTRA_CFLAGS variable

to avoid CFLAGS overriding introduce new EXTRA_CFLAGS variable
for setting via command argument

Upstream-Status: Inappropriate [embedded specific]

Signed-off-by: Dariusz Pelowski <dariusz.pelowski@gmail.com>

---
 Makefile | 2 ++
 1 file changed, 2 insertions(+)

Index: git/Makefile
===================================================================
--- git.orig/Makefile
+++ git/Makefile
@@ -2,6 +2,8 @@
 # Define WERROR=0 to disable -Werror.
 #
 
+CFLAGS += $(EXTRA_CFLAGS)
+
 ifeq ($(strip $(V)),)
 	ifeq ($(findstring s,$(filter-out --%,$(firstword $(MAKEFLAGS)))),)
 		E = @echo