Add copies for the hwcap bits we need in case not present in auxv.h

This commit is contained in:
Panu Matilainen 2014-06-27 10:35:21 +03:00
parent 2d67ca74c9
commit 5a04330db8
1 changed files with 9 additions and 0 deletions

View File

@ -1138,6 +1138,15 @@ static void defaultMachine(rpmrcCtx ctx, const char ** arch, const char ** os)
# endif /* ppc64*-linux */
# if defined(__linux__) && defined(__arm__)
# if !defined(HWCAP_ARM_VFP)
# define HWCAP_ARM_VFP (1 << 6)
# endif
# if !defined(HWCAP_ARM_NEON)
# define HWCAP_ARM_NEON (1 << 12)
# endif
# if !defined(HWCAP_ARM_VFPv3D16)
# define HWCAP_ARM_VFPv3D16 (1 << 13)
# endif
if (rstreq(un.machine, "armv7l")) {
if (rpmat.hwcap & HWCAP_ARM_VFPv3D16) {
if (rpmat.hwcap & HWCAP_ARM_NEON)