mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
sysdeps: arm: Fix preconfigure script for ARMv8/v9 targets [BZ #29698]
The ARM preconfigure script tries to detect the capabilities of the target platform by checking the compiler's predefined architecture macros. However, if the compiler is tuning for AArch32 on ARMv8/v9 this step fails: checking for sysdeps preconfigure fragments... aarch64 alpha arc arm WARNING: arm/preconfigure: Did not find ARM architecture type; using default This is because preconfigure.ac doesn't escape the square brackets in the glob for matching compilers targeting ARMv8. Adding another pair of brackets to escape the first pair fixes this: checking for sysdeps preconfigure fragments... aarch64 alpha arc arm Found compiler is configured for something newer than v7 - using v7 Signed-off-by: Felix Riemann <felix.riemann@sma.de> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
0ff92021c0
commit
a885fc2d68
@ -22,7 +22,7 @@ arm*)
|
||||
sed -n 's/^#define \(__ARM_ARCH_[0-9].*__\) .*$/\1/p'`
|
||||
|
||||
case "x$archcppflag" in
|
||||
x__ARM_ARCH_89*__)
|
||||
x__ARM_ARCH_[89]*__)
|
||||
machine=armv7
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Found compiler is configured for something newer than v7 - using v7" >&5
|
||||
$as_echo "$as_me: Found compiler is configured for something newer than v7 - using v7" >&6;}
|
||||
|
@ -22,7 +22,7 @@ arm*)
|
||||
sed -n 's/^#define \(__ARM_ARCH_[0-9].*__\) .*$/\1/p'`
|
||||
|
||||
case "x$archcppflag" in
|
||||
x__ARM_ARCH_[89]*__)
|
||||
x__ARM_ARCH_[[89]]*__)
|
||||
machine=armv7
|
||||
AC_MSG_NOTICE([Found compiler is configured for something newer than v7 - using v7])
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user