summaryrefslogtreecommitdiff
blob: 5e6b939d0100322f0f0e85ffa649571e64f21ca1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-Werror can have args now, but didn't when this code was originally written.

Closes: https://bugs.gentoo.org/show_bug.cgi?id=714828
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>

--- pilot-link-0.12.5.orig/configure.ac	2020-08-02 21:58:12.481559328 -0700
+++ pilot-link-0.12.5/configure.ac	2020-08-02 22:02:49.641291824 -0700
@@ -63,8 +63,8 @@
 dnl Eat -Werror so configure will run properly, if the user provided it
 enable_werror=no
 save_CFLAGS="$CFLAGS"
-CFLAGS=`echo $save_CFLAGS | sed -e s/-Werror//g`
-CXXFLAGS=`echo $save_CXXFLAGS | sed -e s/-Werror//g`
+CFLAGS=`echo $save_CFLAGS | sed -r -e 's/-Werror(=[^[:space:]]+)?//g'`
+CXXFLAGS=`echo $save_CXXFLAGS | sed -r -e 's/-Werror(=[^[:space:]]+)?//g'`
 if test "x$CFLAGS" != "x$save_CFLAGS"; then
 	dnl -Werror was set; treat it as implicit --enable-werror below
 	enable_werror="yes"