summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 8 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index aae5e08..58aa6cf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -247,8 +247,14 @@ AC_ARG_ENABLE(
AS_IF(
[test "x$enable_debug" = "xyes"],
- [AC_SUBST([DEFAULT_CFLAGS], ["$default_cflags -O0 -DDEBUG"])],
- [AC_SUBST([DEFAULT_CFLAGS], ["$default_cflags -O2 -DNDEBUG"])]
+ [
+ AC_SUBST([DEFAULT_CFLAGS], ["$default_cflags -O0"])
+ AC_SUBST([DEFAULT_CPPFLAGS], ["-DDEBUG"])
+ ],
+ [
+ AC_SUBST([DEFAULT_CFLAGS], ["$default_cflags -O2"])
+ AC_SUBST([DEFAULT_CPPFLAGS], ["-DNDEBUG"])
+ ]
)
OpenPOWER on IntegriCloud