From 5e1b777ab504b5ab4428e5850bc03039f0e680ff Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 1 Aug 2012 00:12:05 +0200 Subject: [PATCH] configure.ac: Use $CPPFLAGS for preprocessor flags. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c71222a..db5285c 100644 --- a/configure.ac +++ b/configure.ac @@ -26,7 +26,8 @@ AC_PROG_CC if test "x$GCC" = xyes; then CFLAGS="-std=c89 -pedantic -Wall -Wextra -Werror $CFLAGS" - CFLAGS="-D_XOPEN_SOURCE=500 -Wno-error=int-to-pointer-cast $CFLAGS" + CFLAGS="-Wno-error=int-to-pointer-cast $CFLAGS" + CPPFLAGS="-D_XOPEN_SOURCE=500 $CPPFLAGS" # Additional security flags. CFLAGS="$CFLAGS -Wformat -Wformat-security -Werror=format-security" CFLAGS="$CFLAGS -fstack-protector-all -Wstack-protector" -- 2.45.2