From a4cc3e253852794f477ef5d836537b50111d0e42 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 23 Mar 2009 14:22:37 +0100 Subject: s3:build: prevent from setting "-O -g", check for $debug first. This makes configure actually behave as the comments describe. The reversal of order was introduced by mistake in 90ea8ae9b1ed3b7ed1c93076517e026e629ea1aa Michael --- source3/configure.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/configure.in b/source3/configure.in index 12808eb6f5..5f1a5efe7d 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -152,12 +152,12 @@ AC_SUBST(NSCD_LIBS) # 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 if test "x$debug" = "xyes" ; then CFLAGS="${CFLAGS} -g" fi +if test "x$CFLAGS" = x; then + CFLAGS="-O" +fi m4_include(../lib/socket_wrapper/config.m4) m4_include(../lib/nss_wrapper/config.m4) -- cgit