mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-26 01:15:52 +01:00
Configure: Fixed usage of CPPFLAGS instead of CFLAGS for some options
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.
This commit is contained in:
committed by
Carlos R. Mafra
parent
f73ccae798
commit
e17a197bc4
12
configure.ac
12
configure.ac
@@ -84,7 +84,7 @@ AC_ARG_ENABLE(debug,
|
|||||||
[AC_MSG_ERROR([bad value $enableval for --enable-debug])] )],
|
[AC_MSG_ERROR([bad value $enableval for --enable-debug])] )],
|
||||||
[debug=no])
|
[debug=no])
|
||||||
AS_IF([test "x$debug" = "xyes"],
|
AS_IF([test "x$debug" = "xyes"],
|
||||||
[CFLAGS="-g -O0 -DDEBUG"])
|
[CFLAGS="-g -O0" ; CPPFLAGS="$CPPFLAGS -DDEBUG"])
|
||||||
|
|
||||||
|
|
||||||
AX_CFLAGS_GCC_OPTION(-Wall)
|
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 Platform-specific Makefile setup
|
||||||
dnl ================================
|
dnl ================================
|
||||||
AS_CASE(["$host"],
|
AS_CASE(["$host"],
|
||||||
[*-*-linux*|*-*-cygwin*|*-gnu*], [WM_OSDEP="linux" ; CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600"],
|
[*-*-linux*|*-*-cygwin*|*-gnu*], [WM_OSDEP="linux" ; CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"],
|
||||||
[*-*-freebsd*|*-k*bsd-gnu*], [WM_OSDEP="bsd" ; CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -DFREEBSD"],
|
[*-*-freebsd*|*-k*bsd-gnu*], [WM_OSDEP="bsd" ; CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -DFREEBSD"],
|
||||||
[*-*-netbsd*], [WM_OSDEP="bsd" ; CFLAGS="$CFLAGS -DNETBSD"],
|
[*-*-netbsd*], [WM_OSDEP="bsd" ; CPPFLAGS="$CPPFLAGS -DNETBSD"],
|
||||||
[*-*-openbsd*], [WM_OSDEP="bsd" ; CFLAGS="$CFLAGS -DOPENBSD"],
|
[*-*-openbsd*], [WM_OSDEP="bsd" ; CPPFLAGS="$CPPFLAGS -DOPENBSD"],
|
||||||
[*-*-dragonfly*], [WM_OSDEP="bsd" ; CFLAGS="$CFLAGS -DDRAGONFLYBSD"],
|
[*-*-dragonfly*], [WM_OSDEP="bsd" ; CPPFLAGS="$CPPFLAGS -DDRAGONFLYBSD"],
|
||||||
[*-apple-darwin*], [WM_OSDEP="darwin"],
|
[*-apple-darwin*], [WM_OSDEP="darwin"],
|
||||||
[*-*-solaris*], [WM_OSDEP="stub"], dnl solaris.c when done
|
[*-*-solaris*], [WM_OSDEP="stub"], dnl solaris.c when done
|
||||||
[WM_OSDEP="stub"])
|
[WM_OSDEP="stub"])
|
||||||
|
|||||||
Reference in New Issue
Block a user