Harald Hoyer 308914
From c490ea8b2be52910c8ce70d08717cf1996c0d732 Mon Sep 17 00:00:00 2001
Harald Hoyer 308914
From: Daniel Molkentin <dmolkentin@suse.com>
Harald Hoyer 308914
Date: Sat, 21 Apr 2018 00:11:17 +0200
Harald Hoyer 308914
Subject: [PATCH] Make externally defined CFLAGS work
Harald Hoyer 308914
Harald Hoyer 308914
---
Harald Hoyer 308914
 Makefile | 4 ++--
Harald Hoyer 308914
 1 file changed, 2 insertions(+), 2 deletions(-)
Harald Hoyer 308914
Harald Hoyer 308914
diff --git a/Makefile b/Makefile
Harald Hoyer 308914
index 02e2c4b5..0cc8b390 100644
Harald Hoyer 308914
--- a/Makefile
Harald Hoyer 308914
+++ b/Makefile
Harald Hoyer 308914
@@ -18,8 +18,8 @@ pkglibdir ?= ${libdir}/dracut
Harald Hoyer 308914
 sysconfdir ?= ${prefix}/etc
Harald Hoyer 308914
 bindir ?= ${prefix}/bin
Harald Hoyer 308914
 mandir ?= ${prefix}/share/man
Harald Hoyer 308914
-CFLAGS ?= -O2 -g -Wall
Harald Hoyer 308914
-CFLAGS += -std=gnu99 -D_FILE_OFFSET_BITS=64 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 $(KMOD_CFLAGS)
Harald Hoyer 308914
+CFLAGS ?= -O2 -g -Wall -std=gnu99 -D_FILE_OFFSET_BITS=64 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
Harald Hoyer 308914
+CFLAGS += $(KMOD_CFLAGS)
Harald Hoyer 308914
 bashcompletiondir ?= ${datadir}/bash-completion/completions
Harald Hoyer 308914
 pkgconfigdatadir ?= $(datadir)/pkgconfig
Harald Hoyer 308914
 
Harald Hoyer 308914