If configure is invoked with e.g.
CFLAGS='--sysroot=/workspace/linux-mips64/sysroot -mabi=64'
flags FLAG_M32 and FLAG_M64 are not set, because the grep search in
configure.ac mismatches the mips keyword in the path.
Update the grep patterns to anchor on non-word boundaries.
This fixes KDE #412344.
Patch by Chris Packham.
409367 exit_group() after signal to thread waiting in futex() causes hangs
410599 Non-deterministic behaviour of pth_self_kill_15_other test
411134 Allow the user to change a set of command line options during execution
+412344 Problem setting mips flags with specific paths
413603 callgrind_annotate/cg_annotate truncate function names at '#'
n-i-bz Fix minor one time leaks in dhat.
case "${host_cpu}" in
mips*)
- ARCH=$(echo "$CFLAGS" | grep -E -e '-march=@<:@^ @:>@+' -e '-mips@<:@^ +@:>@')
+ ARCH=$(echo "$CFLAGS" | grep -E -e '-march=@<:@^ @:>@+' -e '\B-mips@<:@^ +@:>@')
if test -z "$ARCH"; then
# does this compiler support -march=mips32 (mips32 default) ?
AC_MSG_CHECKING([if gcc accepts -march=mips32 -mabi=32])
esac
-ARCH=$(echo "$CFLAGS" | grep -E -e '-march=@<:@^ @:>@+' -e '-mips@<:@^ +@:>@')
+ARCH=$(echo "$CFLAGS" | grep -E -e '-march=@<:@^ @:>@+' -e '\B-mips@<:@^ +@:>@')
if test -z "$ARCH"; then
# does this compiler support -march=octeon (Cavium OCTEON I Specific) ?
AC_MSG_CHECKING([if gcc accepts -march=octeon])