summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Zaitcev <zaitcev@kotori.zaitcev.us>2015-04-30 17:46:17 -0600
committerPete Zaitcev <zaitcev@kotori.zaitcev.us>2015-04-30 17:46:17 -0600
commit5cbab56a1a8ba78c72e8238458b462df0611070f (patch)
treee03a57c0ba3b56c7fd496424d2c0f98bd19d15d9
parent7e3b245b774d3421e1c52af1768c7f4e59b927cd (diff)
downloadliberasurecode-5cbab56a1a8ba78c72e8238458b462df0611070f.tar.gz
Make ./configure to obey CFLAGS
Fedora build system sets global CFLAGS that include things like mandatory security enhancements. It works for all other packages, but ./configure in liberasurecode overrides provides CFLAGS. See Red Hat bug for a humorous workaround: https://bugzilla.redhat.com/show_bug.cgi?id=1208695#c4 Note that this patch does not monkey with the --debug side. Hopefuly this does not violate KISS principle.
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 7790bd2..b4d420e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -69,7 +69,7 @@ if test x$debug = xtrue ; then
else
DEBUG=0
CXXFLAGS=""
- CFLAGS="-O2 -g ${werror_flag} -D_GNU_SOURCE=1 -Wall -pedantic -std=c99"
+ CFLAGS="-O2 -g ${werror_flag} -D_GNU_SOURCE=1 -Wall -pedantic -std=c99 ${CFLAGS}"
fi
AC_ARG_ENABLE([gcov],