From 3a45ba8465810312226172f3b7845e569e1b26e0 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Tue, 16 Jun 2009 08:31:26 -0700 Subject: [PATCH] Ported in flags from Drizzle. --- configure.ac | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 422a41d1..f83c9e06 100644 --- a/configure.ac +++ b/configure.ac @@ -106,14 +106,23 @@ AS_IF([test "$ac_cv_prog_cc_c99" != "no"], if test "$GCC" = "yes" then CFLAGS="-ggdb3 ${CFLAGS}" + CXXFLAGS="-ggdb3 ${CXXFLAGS}" + DEBUG_CFLAGS="-O0" + DEBUG_CXXFLAGS="-O0" + OPTIMIZE_CFLAGS="-O3" + OPTIMIZE_CXXFLAGS="-O3" fi if test "x$SUNCC" = "xyes" then - CFLAGS="-g -mt ${CFLAGS}" - CXXFLAGS="-g -mt -xlang=c99 ${CXXFLAGS}" - OPTIMIZE_CFLAGS="-xO4 -xlibmil -xdepend -Xa -xstrconst" + CFLAGS="-g -mt ${CFLAGS}" + CXXFLAGS="-g -mt -xlang=c99 ${CXXFLAGS}" + + OPTIMIZE_FLAGS="-xO4 -xlibmil -xdepend -xbuiltin -lmopt" + OPTIMIZE_CFLAGS="${OPTIMIZE_FLAGS} -Xa -xstrconst" + OPTIMIZE_CXXFLAGS="${OPTIMIZE_FLAGS}" + fi SOLARIS_64BIT -- 2.30.2