e509a42
From 95cc21cf6283ef6faaa1be7c12c9ef58d7891d25 Mon Sep 17 00:00:00 2001
31786f0
From: Chris Leech <cleech@redhat.com>
31786f0
Date: Fri, 13 Sep 2013 16:56:51 -0700
e509a42
Subject: [PATCH] fix hardened build of iscsiuio
31786f0
31786f0
The new iscsiuio code sets CFLAGS in configure.ac, wiping out the
31786f0
environment setup by rpm.  Patch that out.
31786f0
31786f0
---
31786f0
 iscsiuio/configure    | 2 +-
31786f0
 iscsiuio/configure.ac | 2 +-
e509a42
 2 files changed, 2 insertions(+), 2 deletions(-)
31786f0
31786f0
diff --git a/iscsiuio/configure b/iscsiuio/configure
e509a42
index 444c9c0..50cfd90 100755
31786f0
--- a/iscsiuio/configure
31786f0
+++ b/iscsiuio/configure
e509a42
@@ -22782,7 +22782,7 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
31786f0
 
31786f0
 
31786f0
 
31786f0
-CFLAGS="-O2 -Wall"
31786f0
+CFLAGS="${CFLAGS} -O2 -Wall"
31786f0
 ## check for --enable-debug first before checking CFLAGS before
31786f0
 ## so that we don't mix -O and -g
e509a42
 # Check whether --enable-debug was given.
31786f0
diff --git a/iscsiuio/configure.ac b/iscsiuio/configure.ac
e509a42
index 381b94d..e4af3b2 100644
31786f0
--- a/iscsiuio/configure.ac
31786f0
+++ b/iscsiuio/configure.ac
31786f0
@@ -52,7 +52,7 @@ AC_LIBTOOL_DLOPEN
31786f0
 # libtool stuff
31786f0
 AC_PROG_LIBTOOL
31786f0
 
31786f0
-CFLAGS="-O2 -Wall"
31786f0
+CFLAGS="${CFLAGS} -O2 -Wall"
31786f0
 ## check for --enable-debug first before checking CFLAGS before
31786f0
 ## so that we don't mix -O and -g
31786f0
 AC_ARG_ENABLE(debug,
31786f0
-- 
e509a42
1.8.3.1
31786f0