Blame SOURCES/0165-fix-hardened-build-of-iscsiuio.patch

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