From: Vinson Lee Date: Wed, 22 Mar 2017 07:27:15 +0000 (-0700) Subject: configure.ac: Do not strip away space after regex word match. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bd6f0dcafce73b1c7332a1c51f6862470fe2c2a0;p=mesa.git configure.ac: Do not strip away space after regex word match. Fixes: 62c48ccb413b ("configure.ac: Use POSIX compatible regex for word boundary.") Signed-off-by: Vinson Lee --- diff --git a/configure.ac b/configure.ac index dbf0bf83185..ab9a91ed17b 100644 --- a/configure.ac +++ b/configure.ac @@ -909,9 +909,9 @@ llvm_add_target() { strip_unwanted_llvm_flags() { echo " `$1` " | sed -E \ -e 's/[[[:space:]]]+-m[[^[:space:]]]*//g' \ - -e 's/[[[:space:]]]+-DNDEBUG[[[:space:]]]//g' \ - -e 's/[[[:space:]]]+-D_GNU_SOURCE[[[:space:]]]//g' \ - -e 's/[[[:space:]]]+-pedantic[[[:space:]]]//g' \ + -e 's/[[[:space:]]]+-DNDEBUG[[[:space:]]]/ /g' \ + -e 's/[[[:space:]]]+-D_GNU_SOURCE[[[:space:]]]/ /g' \ + -e 's/[[[:space:]]]+-pedantic[[[:space:]]]/ /g' \ -e 's/[[[:space:]]]+-W[[^[:space:]]]*//g' \ -e 's/[[[:space:]]]+-O[[^[:space:]]]*//g' \ -e 's/[[[:space:]]]+-g[[^[:space:]]]*//g' \