mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-28 07:44:17 +08:00
configure automatically detects correct arm configuration on NetBSD
This commit is contained in:
parent
53f7d8baf4
commit
a2987fef19
12
configure
vendored
12
configure
vendored
@ -178,6 +178,16 @@ case "$cpu" in
|
|||||||
x86_64|amd64|x86-64)
|
x86_64|amd64|x86-64)
|
||||||
cpu="x86_64"
|
cpu="x86_64"
|
||||||
;;
|
;;
|
||||||
|
evbarm)
|
||||||
|
case "`uname -p`" in
|
||||||
|
aarch64|arm64)
|
||||||
|
cpu="aarch64"
|
||||||
|
;;
|
||||||
|
earmv*)
|
||||||
|
cpu="arm"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
aarch64|arm64|evbarm)
|
aarch64|arm64|evbarm)
|
||||||
cpu="aarch64"
|
cpu="aarch64"
|
||||||
;;
|
;;
|
||||||
@ -351,6 +361,8 @@ if test -z "$cross_prefix" ; then
|
|||||||
confvars="$confvars arm_eabihf arm_vfp"
|
confvars="$confvars arm_eabihf arm_vfp"
|
||||||
elif test "${triplet%eabi}" != "$triplet" ; then
|
elif test "${triplet%eabi}" != "$triplet" ; then
|
||||||
confvars="$confvars arm_eabi"
|
confvars="$confvars arm_eabi"
|
||||||
|
elif test "`uname`" = "NetBSD"; then
|
||||||
|
confvars="$confvars arm_eabihf arm_vfp"
|
||||||
fi
|
fi
|
||||||
if grep -s -q "^Features.* \(vfp\|iwmmxt\) " /proc/cpuinfo ; then
|
if grep -s -q "^Features.* \(vfp\|iwmmxt\) " /proc/cpuinfo ; then
|
||||||
confvars="$confvars arm_vfp"
|
confvars="$confvars arm_vfp"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user