From bd6f0dcafce73b1c7332a1c51f6862470fe2c2a0 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Wed, 22 Mar 2017 00:27:15 -0700 Subject: 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 --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'configure.ac') 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' \ -- cgit v1.2.3