[PATCH] configure: Use -Werror=unknown-warning-option in later cross tests

Martin Storsjo martin at martin.st
Wed Apr 10 07:49:17 CDT 2019


Previously, if detected, the option was added to EXTRACROSSFLAGS,
which isn't taken into use in later WINE_TRY_CROSSCFLAGS tests.

Signed-off-by: Martin Storsjo <martin at martin.st>
---
Alternatively, should WINE_TRY_CROSSCFLAGS automatically use
all of EXTRACROSSFLAGS?
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index cb5aa78662..67b360d9a9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1028,7 +1028,7 @@ then
                           [AC_MSG_RESULT([no])])
         WINE_TRY_CROSSCFLAGS([-fno-strict-aliasing])
         dnl clang needs to be told to fail on unknown options
-        WINE_TRY_CROSSCFLAGS([-Werror=unknown-warning-option])
+        WINE_TRY_CROSSCFLAGS([-Werror=unknown-warning-option],[CFLAGS="$CFLAGS -Werror=unknown-warning-option"])
         WINE_TRY_CROSSCFLAGS([-Wdeclaration-after-statement])
         WINE_TRY_CROSSCFLAGS([-Wempty-body])
         WINE_TRY_CROSSCFLAGS([-Wignored-qualifiers])
-- 
2.17.1




More information about the wine-devel mailing list