svn commit: samba r18694 - in branches/SAMBA_3_0/source: .

jerry at samba.org jerry at samba.org
Tue Sep 19 22:47:02 GMT 2006


Author: jerry
Date: 2006-09-19 22:47:01 +0000 (Tue, 19 Sep 2006)
New Revision: 18694

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18694

Log:
prevent -O and -g from being set at the same time (by default)
Modified:
   branches/SAMBA_3_0/source/configure.in


Changeset:
Modified: branches/SAMBA_3_0/source/configure.in
===================================================================
--- branches/SAMBA_3_0/source/configure.in	2006-09-19 22:39:49 UTC (rev 18693)
+++ branches/SAMBA_3_0/source/configure.in	2006-09-19 22:47:01 UTC (rev 18694)
@@ -306,6 +306,14 @@
 AC_SUBST(CONFIG_LIBS)
 AC_SUBST(NSCD_LIBS)
 
+## check for --enable-debug first before checking CFLAGS before
+## so that we don't mix -O and -g
+AC_ARG_ENABLE(debug, 
+[  --enable-debug          Turn on compiler debugging information (default=no)],
+    [if eval "test x$enable_debug = xyes"; then
+	CFLAGS="${CFLAGS} -g"
+    fi])
+
 # compile with optimization and without debugging by default, but
 # allow people to set their own preference.
 # do this here since AC_CACHE_CHECK apparently sets the CFLAGS to "-g -O2"
@@ -344,12 +352,6 @@
 	libc_cv_fpie=no
 fi
 
-AC_ARG_ENABLE(debug, 
-[  --enable-debug          Turn on compiler debugging information (default=no)],
-    [if eval "test x$enable_debug = xyes"; then
-	CFLAGS="${CFLAGS} -g"
-    fi])
-
 m4_include(lib/socket_wrapper/config.m4)
 
 #################################################



More information about the samba-cvs mailing list