summaryrefslogtreecommitdiff
blob: fb8c211b3a0a1f4b32147ffaa0e26c998be3b490 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Respect CFLAGS (bug #377353) -JeR


--- a/configure.ac
+++ b/configure.ac
@@ -199,18 +199,6 @@
     #XXX make sure compiling with compiler options works
 esac
 
-AC_MSG_CHECKING([for support for -pipe compiler flag])
-oCFLAGS=$CFLAGS
-CFLAGS="$CFLAGS -pipe"
-AC_TRY_RUN([
-int main()
-{
-	return 0;
-}], [AC_MSG_RESULT([yes])
-     comp_flags="${comp_flags} -pipe"],
-    AC_MSG_RESULT([no]))
-CFLAGS="$oCFLAGS"
-
 AC_MSG_CHECKING([for support for -Wbounded compiler flag])
 oCFLAGS=$CFLAGS
 CFLAGS="$CFLAGS -Wbounded"
@@ -233,18 +221,11 @@
  fi])
 
 if test x$debug_enabled = xt; then
-    #no optimization wanted
-    if test $ac_cv_prog_cc_g = yes; then
-	CFLAGS="$CFLAGS -g"
-    fi
     CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }-DDEBUG=1"
     AC_MSG_RESULT([yes])
 else
     AC_MSG_RESULT([no])
-    #autoconf_compflags is set to "-g -O2" with GCC
-    #override CFLAGS when running configure to avoid this
     CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }-DDEBUG=0"
-    CFLAGS="$CFLAGS $autoconf_compflags"
 fi
 
 #-Wall ?