[or-cvs] On non-gcc compilers, use -g -O instead of -Wall -g -O2: re...

Nick Mathewson nickm at seul.org
Mon Mar 27 00:43:41 UTC 2006


Update of /home/or/cvsroot/tor
In directory moria:/tmp/cvs-serv16877

Modified Files:
	configure.in 
Log Message:
On non-gcc compilers, use -g -O instead of -Wall -g -O2: resolve bug 273.

Index: configure.in
===================================================================
RCS file: /home/or/cvsroot/tor/configure.in,v
retrieving revision 1.279
retrieving revision 1.280
diff -u -p -d -r1.279 -r1.280
--- configure.in	21 Mar 2006 19:01:34 -0000	1.279
+++ configure.in	27 Mar 2006 00:43:39 -0000	1.280
@@ -595,7 +595,11 @@ AC_DEFINE([LOCALSTATEDIR], [], [Default 
 
 # Set CFLAGS _after_ all the above checks, since our warnings are stricter
 # than autoconf's macros like.
-CFLAGS="$CFLAGS -Wall -g -O2"
+if test $ac_cv_c_compiler_gnu = yes; then
+  CFLAGS="$CFLAGS -Wall -g -O2"
+else
+  CFLAGS="$CFLAGS -g -O"
+fi
 # Add some more warnings which we use in the cvs version but not in the
 # released versions.  (Some relevant gcc versions can't handle these.)
 #CFLAGS="$CFLAGS -W -Wno-unused-parameter -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat=2 -Winit-self -Wwrite-strings -Waggregate-return -Wmissing-declarations -Wmissing-field-initializers -Wredundant-decls -Winline"



More information about the tor-commits mailing list