File 0023-Use-OPTFLAGS-when-compiling.patch of Package lio-utils.216

From 5681a54afd2ddc1325a106f668481fa908ec39c9 Mon Sep 17 00:00:00 2001
From: Hannes Reinecke <hare@suse.de>
Date: Wed, 18 Dec 2013 14:56:54 +0100
Subject: Use 'OPTFLAGS' when compiling mib-modules

Signed-off-by: Hannes Reinecke <hare@suse.de>
---
 mib-modules/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mib-modules/Makefile b/mib-modules/Makefile
index 0d54c9b..49cd175 100644
--- a/mib-modules/Makefile
+++ b/mib-modules/Makefile
@@ -19,7 +19,8 @@ OBJS		= iscsiTargetMib.o iscsiMib.o scsiMib.o ipsAuthMib.o \
 
 CC		= gcc
 CFLAGS		= -I$(INCLDIR) -I$(INCLDIR)/agent -I$(INCLDIR)/agent/mibgroup -shared -fPIC
-CFLAGS		+= -I../include -Wall -Werror
+OPTFLAGS	= -Wall -Werror
+CFLAGS		+= -I../include $(OPTFLAGS)
 #CFLAGS		+=$(AUTO_CFLAGS)
 
 LD		= gcc -shared
-- 
1.8.1.4

openSUSE Build Service is sponsored by