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 dbf0bf83185b396d58fb5b624f356fadb63f1ad8..ab9a91ed17bff352c71e039337ee07115ef2c2d7 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' \