summaryrefslogtreecommitdiff
blob: 8d7c387851a5fbd16ef97d9f32ed8436c6d5562a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- a/configure	2018-02-01 22:51:53.068467555 +0000
+++ b/configure	2018-02-01 22:52:23.965041387 +0000
@@ -5212,21 +5212,12 @@ fi
 if test "$gcov" = "yes" ; then
   CFLAGS="-fprofile-arcs -ftest-coverage -g $CFLAGS"
   LDFLAGS="-fprofile-arcs -ftest-coverage $LDFLAGS"
-elif test "$fortify_source" = "yes" ; then
-  CFLAGS="-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 $CFLAGS"
 elif test "$debug" = "yes"; then
-  if compile_prog "-Og" ""; then
-      CFLAGS="-Og $CFLAGS"
-  elif compile_prog "-O1" ""; then
-      CFLAGS="-O1 $CFLAGS"
-  fi
   # Workaround GCC false-positive Wuninitialized bugs with Og or O1:
   # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639
   if cc_has_warning_flag "-Wno-maybe-uninitialized"; then
       CFLAGS="-Wno-maybe-uninitialized $CFLAGS"
   fi
-else
-    CFLAGS="-O2 $CFLAGS"
 fi
 
 ##########################################