Changeset View
Changeset View
Standalone View
Standalone View
head/graphics/mesa-dri/files/configure.ac
--- configure.ac.orig 2017-04-01 15:33:36 UTC | --- configure.ac.orig 2017-04-01 15:33:36 UTC | ||||
+++ configure.ac | +++ configure.ac | ||||
@@ -942,19 +942,19 @@ 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) | |||||
- echo " `$1`" | sed \ | |||||
- -e 's/\s\+-m\S*//g' \ | |||||
- -e 's/\s\+-DNDEBUG\>//g' \ | |||||
- -e 's/\s\+-D_GNU_SOURCE\>//g' \ | |||||
- -e 's/\s\+-pedantic\>//g' \ | |||||
- -e 's/\s\+-W\S*//g' \ | |||||
- -e 's/\s\+-O\S*//g' \ | |||||
- -e 's/\s\+-g\S*//g' \ | |||||
- -e 's/-fno-rtti\>/-Fno-rtti/g' \ | |||||
- -e 's/\s\+-f\S*//g' \ | |||||
- -e 's/-Fno-rtti\>/-fno-rtti/g' \ | |||||
- -e 's/^ //' | |||||
+ 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:]]]+-W[[^[:space:]]]*//g' \ | |||||
+ -e 's/[[[:space:]]]+-O[[^[:space:]]]*//g' \ | |||||
+ -e 's/[[[:space:]]]+-g[[^[:space:]]]*//g' \ | |||||
+ -e 's/-fno-rtti[[[:space:]]]/-Fno-rtti /g' \ | |||||
+ -e 's/[[[:space:]]]+-f[[^[:space:]]]*//g' \ | |||||
+ -e 's/-Fno-rtti[[[:space:]]]/-fno-rtti /g' \ | |||||
+ -e 's/^[[[:space:]]]//' \ | |||||
+ -e 's/[[[:space:]]]$//' | |||||
} | |||||
llvm_set_environment_variables() { | |||||
@@ -1121,7 +1121,7 @@ fi | @@ -1121,7 +1121,7 @@ fi | ||||
AC_SUBST(LIBSENSORS_LIBS) | AC_SUBST(LIBSENSORS_LIBS) | ||||
case "$host_os" in | case "$host_os" in | ||||
-linux*) | -linux*) | ||||
+linux* | freebsd*) | +linux* | freebsd*) | ||||
dri3_default=yes | dri3_default=yes | ||||
;; | ;; | ||||
Show All 38 Lines |