configure.ac: Do not strip away space after regex word match.
authorVinson Lee <vlee@freedesktop.org>
Wed, 22 Mar 2017 07:27:15 +0000 (00:27 -0700)
committerVinson Lee <vlee@freedesktop.org>
Wed, 22 Mar 2017 07:30:22 +0000 (00:30 -0700)
Fixes: 62c48ccb413b ("configure.ac: Use POSIX compatible regex for word boundary.")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
configure.ac

index dbf0bf8..ab9a91e 100644 (file)
@@ -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' \