aclocal.m4: when testing a CFLAG, use all enabled CFLAGS (1/2)

Austin English austinenglish at gmail.com
Wed May 15 14:36:48 CDT 2013


This patch series fixes http://bugs.winehq.org/show_bug.cgi?id=26751

--
-Austin
-------------- next part --------------
From e7b97788ed68d6817eaa46188d6fe275c86762bb Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Wed, 15 May 2013 12:32:03 -0700
Subject: aclocal.m4: when testing a CFLAG, use all enabled CFLAGS (1/2)

---
 aclocal.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aclocal.m4 b/aclocal.m4
index 1745d16..bc5bda5 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -101,7 +101,7 @@ AC_DEFUN([WINE_TRY_CFLAGS],
 [AS_VAR_PUSHDEF([ac_var], ac_cv_cflags_[[$1]])dnl
 AC_CACHE_CHECK([whether the compiler supports $1], ac_var,
 [ac_wine_try_cflags_saved=$CFLAGS
-CFLAGS="$CFLAGS $1"
+CFLAGS="$CFLAGS $EXTRACFLAGS $1"
 AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(int argc, char **argv) { return 0; }]])],
                [AS_VAR_SET(ac_var,yes)], [AS_VAR_SET(ac_var,no)])
 CFLAGS=$ac_wine_try_cflags_saved])
-- 
1.8.2.1


More information about the wine-patches mailing list