svn commit: samba r6095 - in trunk/source: .
jerry at samba.org
jerry at samba.org
Mon Mar 28 15:17:58 GMT 2005
Author: jerry
Date: 2005-03-28 15:17:58 +0000 (Mon, 28 Mar 2005)
New Revision: 6095
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6095
Log:
merging configure.in for CFLAGS from 3.0
Modified:
trunk/source/configure.in
Changeset:
Modified: trunk/source/configure.in
===================================================================
--- trunk/source/configure.in 2005-03-28 06:40:18 UTC (rev 6094)
+++ trunk/source/configure.in 2005-03-28 15:17:58 UTC (rev 6095)
@@ -236,6 +236,16 @@
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"
+# if it has no value. This prevent *very* large debug binaries from occurring
+# by default.
+if test "x$CFLAGS" = x; then
+ CFLAGS="-O"
+fi
+
+
AC_ARG_ENABLE(developer, [ --enable-developer Turn on developer warnings and debugging (default=no)],
[if eval "test x$enable_developer = xyes"; then
developer=yes
@@ -294,13 +304,6 @@
AC_CHECK_TOOL(AR, ar)
-# compile with optimization and without debugging by default, but
-# allow people to set their own preference.
-if test "x$CFLAGS" = x
-then
- CFLAGS="-O ${CFLAGS}"
-fi
-
dnl Check if we use GNU ld
LD=ld
AC_PROG_LD_GNU
More information about the samba-cvs
mailing list