From 5a04330db8f27f72172df96da35c07a92c195e48 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Fri, 27 Jun 2014 10:35:21 +0300 Subject: [PATCH] Add copies for the hwcap bits we need in case not present in auxv.h --- lib/rpmrc.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/rpmrc.c b/lib/rpmrc.c index 1e053e894..fbd00b57b 100644 --- a/lib/rpmrc.c +++ b/lib/rpmrc.c @@ -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)