[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 7/8] Do not force -O2 in CFLAGS.



The compiler optimization level will be set by the RPM_OPT_FLAGS
at package build time.  By not forcing -O2, we can more easily
build with -O0 for debugging purposes.
---
 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index bcc5868..c8e64de 100644
--- a/configure.ac
+++ b/configure.ac
@@ -143,7 +143,7 @@ PKG_CHECK_MODULES([LIBARCHIVE], [libarchive >= 2.7.902a])
 
 # Set $RPM_OPT_FLAGS if we don't have it
 if test -z $RPM_OPT_FLAGS ; then
-    CFLAGS="$CFLAGS -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions"
+    CFLAGS="$CFLAGS -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions"
 else
     CFLAGS="$CFLAGS $RPM_OPT_FLAGS"
 fi
-- 
1.7.3.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]