[Mesa-dev] [PATCH] configure.ac: Use POSIX word boundary regex.

Vinson Lee vlee at freedesktop.org
Thu Mar 16 22:42:07 UTC 2017


Fixes: fe56c745b8cb ("Convert sed(1) syntax to be compatible with FreeBSD and OpenBSD")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100236
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 configure.ac | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 8c9d756f294e..684c0e6fcaed 100644
--- a/configure.ac
+++ b/configure.ac
@@ -907,18 +907,18 @@ llvm_add_target() {
 # Call this inside ` ` to get the return value.
 # $1 is the llvm-config command with arguments.
 strip_unwanted_llvm_flags() {
-    # Use \> (marks the end of the word)
+    # Use [[:>:]] (marks the end of the word)
     echo " `$1`" | sed -E \
         -e 's/[[[:space:]]]+-m[[^[:space:]]]*//g' \
-        -e 's/[[[:space:]]]+-DNDEBUG\>//g' \
+        -e 's/[[[:space:]]]+-DNDEBUG[[[:>:]]]//g' \
         -e 's/[[[:space:]]]+-D_GNU_SOURCE\>//g' \
-        -e 's/[[[:space:]]]+-pedantic\>//g' \
+        -e 's/[[[:space:]]]+-pedantic[[[:>:]]]//g' \
         -e 's/[[[:space:]]]+-W[[^[:space:]]]*//g' \
         -e 's/[[[:space:]]]+-O[[^[:space:]]]*//g' \
         -e 's/[[[:space:]]]+-g[[^[:space:]]]*//g' \
-        -e 's/-fno-rtti\>/-Fno-rtti/g' \
+        -e 's/-fno-rtti[[[:>:]]]/-Fno-rtti/g' \
         -e 's/[[[:space:]]]+-f[[^[:space:]]]*//g' \
-        -e 's/-Fno-rtti\>/-fno-rtti/g' \
+        -e 's/-Fno-rtti[[[:>:]]]/-fno-rtti/g' \
         -e 's/^[[[:space:]]]//'
 }
 
-- 
2.12.0



More information about the mesa-dev mailing list