Ported in flags from Drizzle.
authorMonty Taylor <mordred@inaugust.com>
Tue, 16 Jun 2009 15:31:26 +0000 (08:31 -0700)
committerMonty Taylor <mordred@inaugust.com>
Tue, 16 Jun 2009 15:31:26 +0000 (08:31 -0700)
configure.ac

index 422a41d19f1b8709cf2a3028045a6ad08f725c9a..f83c9e064ed419b69617116c0170f5e36d2050f6 100644 (file)
@@ -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