Harald Hoyer 12f6cc
From e045e1f386b2e44e9be88ea53f45090dfc7e095d Mon Sep 17 00:00:00 2001
Harald Hoyer 12f6cc
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 12f6cc
Date: Wed, 25 Jul 2012 15:20:22 +0200
Harald Hoyer 12f6cc
Subject: [PATCH] Makefile: honor CFLAGS
Harald Hoyer 12f6cc
Harald Hoyer 12f6cc
---
Harald Hoyer 12f6cc
 Makefile | 3 ++-
Harald Hoyer 12f6cc
 1 file changed, 2 insertions(+), 1 deletion(-)
Harald Hoyer 12f6cc
Harald Hoyer 12f6cc
diff --git a/Makefile b/Makefile
Harald Hoyer 12f6cc
index 548952d..a109ef0 100644
Harald Hoyer 12f6cc
--- a/Makefile
Harald Hoyer 12f6cc
+++ b/Makefile
Harald Hoyer 12f6cc
@@ -8,6 +8,7 @@ pkglibdir ?= ${libdir}/dracut
Harald Hoyer 12f6cc
 sysconfdir ?= ${prefix}/etc
Harald Hoyer 12f6cc
 bindir ?= ${prefix}/bin
Harald Hoyer 12f6cc
 mandir ?= ${prefix}/share/man
Harald Hoyer 12f6cc
+CFLAGS ?= -std=gnu99 -O2 -g -Wall
Harald Hoyer 12f6cc
 
Harald Hoyer 12f6cc
 man1pages = lsinitrd.1
Harald Hoyer 12f6cc
 
Harald Hoyer 12f6cc
@@ -46,7 +47,7 @@ DRACUT_INSTALL_HEADER = \
Harald Hoyer 12f6cc
         install/util.h
Harald Hoyer 12f6cc
 
Harald Hoyer 12f6cc
 dracut-install: $(DRACUT_INSTALL_SOURCE) $(DRACUT_INSTALL_HEADER)
Harald Hoyer 12f6cc
-	gcc -std=gnu99 -O2 -g -Wall -o dracut-install $(DRACUT_INSTALL_SOURCE)
Harald Hoyer 12f6cc
+	gcc $(CFLAGS) -o dracut-install $(DRACUT_INSTALL_SOURCE)
Harald Hoyer 12f6cc
 
Harald Hoyer 12f6cc
 indent:
Harald Hoyer 12f6cc
 	indent -i8 -nut -br -linux -l120 install/dracut-install.c