From 51cf00349fa454983276517342dd943e8e59548b Mon Sep 17 00:00:00 2001
From: Michal Schmidt <mschmidt@redhat.com>
Date: Fri, 21 Mar 2014 14:59:22 +0100
Subject: [PATCH 1/3] Don't throw away Fedora's CXXFLAGS
Make sure Fedora's %{optflags} are respected.
Overriding the optimization level is discouraged by the Fedora packaging
guidelines and would need a strong justification (measured results).
---
configure.ac | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/configure.ac b/configure.ac
index 679289f..6584172 100644
--- a/configure.ac
+++ b/configure.ac
@@ -76,7 +76,7 @@ AC_PROG_CXX
#AC_PROG_LIBTOOL
-CXXFLAGS="-Werror -Wall --param inline-unit-growth=200"
+CXXFLAGS="$CXXFLAGS -Werror -Wall"
CXXFLAGS="$CXXFLAGS -D__LINUX__ -DVERSION=$VERSION"
@@ -130,8 +130,8 @@ if test x$enable_debug = xyes; then
CFLAGS="$CFLAGS -g -D_DEBUG -DDEBUG"
else
TARGET_BUILD=rls
- CXXFLAGS="$CXXFLAGS -O3 -DNDEBUG"
- CFLAGS="$CFLAGS -O3 -DNDEBUG"
+ CXXFLAGS="$CXXFLAGS -DNDEBUG"
+ CFLAGS="$CFLAGS -DNDEBUG"
fi
@@ -143,8 +143,8 @@ AC_ARG_ENABLE(
AC_HELP_STRING([--enable-debuginfo],
[SOCKPERF: include debug information (default=no)]))
if test x$enable_debuginfo = xyes; then
- CXXFLAGS="$CXXFLAGS -g -O3"
- CFLAGS="$CFLAGS -g -O3"
+ CXXFLAGS="$CXXFLAGS -g"
+ CFLAGS="$CFLAGS -g"
fi
##########################
--
1.9.0