[pacman-dev] [PATCH 06/11] buildsys: use AC_DEFINE for CYGWIN macro

Dave Reisner dreisner at archlinux.org
Mon Apr 2 17:15:51 EDT 2012


Instead of directly modifying CFLAGS, use config.h for its intended
purpose.

Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
 configure.ac |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 1b95211..7590d9d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -277,7 +277,7 @@ case "${host_os}" in
 		;;
 	cygwin*)
 		host_os_cygwin=yes
-		CFLAGS="$CFLAGS -DCYGWIN"
+		AC_DEFINE([CYGWIN], [1], [Define if host OS is cygwin])
 		;;
 	darwin*)
 		host_os_darwin=yes
-- 
1.7.9.5



More information about the pacman-dev mailing list