Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-proxy/dante/files: dante-1.3.1-flags.patch
Date: Tue, 02 Aug 2011 03:01:23
Message-Id: 20110802030110.8478720051@flycatcher.gentoo.org
1 jer 11/08/02 03:01:10
2
3 Added: dante-1.3.1-flags.patch
4 Log:
5 Respect CFLAGS thanks to Agostino Sarubbo (bug #377353).
6
7 (Portage version: 2.2.0_alpha49/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 net-proxy/dante/files/dante-1.3.1-flags.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/dante/files/dante-1.3.1-flags.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/dante/files/dante-1.3.1-flags.patch?rev=1.1&content-type=text/plain
14
15 Index: dante-1.3.1-flags.patch
16 ===================================================================
17 Respect CFLAGS (bug #377353) -JeR
18
19
20 --- a/configure.ac
21 +++ b/configure.ac
22 @@ -199,18 +199,6 @@
23 #XXX make sure compiling with compiler options works
24 esac
25
26 -AC_MSG_CHECKING([for support for -pipe compiler flag])
27 -oCFLAGS=$CFLAGS
28 -CFLAGS="$CFLAGS -pipe"
29 -AC_TRY_RUN([
30 -int main()
31 -{
32 - return 0;
33 -}], [AC_MSG_RESULT([yes])
34 - comp_flags="${comp_flags} -pipe"],
35 - AC_MSG_RESULT([no]))
36 -CFLAGS="$oCFLAGS"
37 -
38 AC_MSG_CHECKING([for support for -Wbounded compiler flag])
39 oCFLAGS=$CFLAGS
40 CFLAGS="$CFLAGS -Wbounded"
41 @@ -233,18 +221,11 @@
42 fi])
43
44 if test x$debug_enabled = xt; then
45 - #no optimization wanted
46 - if test $ac_cv_prog_cc_g = yes; then
47 - CFLAGS="$CFLAGS -g"
48 - fi
49 CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }-DDEBUG=1"
50 AC_MSG_RESULT([yes])
51 else
52 AC_MSG_RESULT([no])
53 - #autoconf_compflags is set to "-g -O2" with GCC
54 - #override CFLAGS when running configure to avoid this
55 CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }-DDEBUG=0"
56 - CFLAGS="$CFLAGS $autoconf_compflags"
57 fi
58
59 #-Wall ?