From: Christophe CURIS <christophe.cu...@free.fr> Some compilation options are actually targetting the preprocessor instead of the compiler; using the wrong variable can have some subtile side effects, so let's get things right. --- configure.ac | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/configure.ac b/configure.ac index f3e113e..0e4e7bd 100644 --- a/configure.ac +++ b/configure.ac @@ -84,7 +84,7 @@ AC_ARG_ENABLE(debug, [AC_MSG_ERROR([bad value $enableval for --enable-debug])] )], [debug=no]) AS_IF([test "x$debug" = "xyes"], - [CFLAGS="-g -O0 -DDEBUG"]) + [CFLAGS="-g -O0" ; CPPFLAGS="$CPPFLAGS -DDEBUG"]) AX_CFLAGS_GCC_OPTION(-Wall) @@ -93,11 +93,11 @@ AX_CFLAGS_GCC_OPTION(-Wextra -Wno-sign-compare -Wno-unused-parameter) dnl Platform-specific Makefile setup dnl ================================ AS_CASE(["$host"], - [*-*-linux*|*-*-cygwin*|*-gnu*], [WM_OSDEP="linux" ; CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600"], - [*-*-freebsd*|*-k*bsd-gnu*], [WM_OSDEP="bsd" ; CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -DFREEBSD"], - [*-*-netbsd*], [WM_OSDEP="bsd" ; CFLAGS="$CFLAGS -DNETBSD"], - [*-*-openbsd*], [WM_OSDEP="bsd" ; CFLAGS="$CFLAGS -DOPENBSD"], - [*-*-dragonfly*], [WM_OSDEP="bsd" ; CFLAGS="$CFLAGS -DDRAGONFLYBSD"], + [*-*-linux*|*-*-cygwin*|*-gnu*], [WM_OSDEP="linux" ; CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"], + [*-*-freebsd*|*-k*bsd-gnu*], [WM_OSDEP="bsd" ; CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -DFREEBSD"], + [*-*-netbsd*], [WM_OSDEP="bsd" ; CPPFLAGS="$CPPFLAGS -DNETBSD"], + [*-*-openbsd*], [WM_OSDEP="bsd" ; CPPFLAGS="$CPPFLAGS -DOPENBSD"], + [*-*-dragonfly*], [WM_OSDEP="bsd" ; CPPFLAGS="$CPPFLAGS -DDRAGONFLYBSD"], [*-apple-darwin*], [WM_OSDEP="darwin"], [*-*-solaris*], [WM_OSDEP="stub"], dnl solaris.c when done [WM_OSDEP="stub"]) -- 1.7.10.4 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.