summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorcmiller@zippy.cornsilk.net <>2007-01-17 13:22:50 -0500
committercmiller@zippy.cornsilk.net <>2007-01-17 13:22:50 -0500
commit332f9ff8b480fcec7259934b1a7b78f126bcaee1 (patch)
treefdfddcd88716173ea48466de687c62c4c0309c38 /BUILD
parent26c0934ee3c66c05c268493484e363d6df02782e (diff)
downloadmariadb-git-332f9ff8b480fcec7259934b1a7b78f126bcaee1.tar.gz
Bug#23721: compile fails: check-cpu mishandles cpu flags with \
hyphen in it (like ds-cpl). convert illegal chars in cpu flags to '_' for variable assignment
Diffstat (limited to 'BUILD')
-rwxr-xr-xBUILD/check-cpu2
1 files changed, 1 insertions, 1 deletions
diff --git a/BUILD/check-cpu b/BUILD/check-cpu
index e207d12d972..5d8c9ef2df4 100755
--- a/BUILD/check-cpu
+++ b/BUILD/check-cpu
@@ -28,7 +28,7 @@ check_cpu () {
fi
# parse CPU flags
- for flag in `$cpuinfo | grep '^flags' | sed -e 's/^flags.*: //'`; do
+ for flag in `$cpuinfo | grep '^flags' | sed -e 's/^flags.*: //' -e 's/[^a-zA-Z0-9_ ]/_/g'`; do
eval cpu_flag_$flag=yes
done
else