From fbab55b27f97ce1d6cf067a1583b28716f2e127c Mon Sep 17 00:00:00 2001 From: Robert Clausecker Date: Sat, 27 Aug 2022 16:37:17 +0200 Subject: math/libdivide: fix build on armv6/armv7 The NEON code included in this library is for arm64 only. Disable use of NEON on armv6/armv7. See . PR: 265870 Reported by: fuz (at) fuz.su --- math/libdivide/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'math/libdivide') diff --git a/math/libdivide/Makefile b/math/libdivide/Makefile index ca5c50a09bb7..8e43501a4eb0 100644 --- a/math/libdivide/Makefile +++ b/math/libdivide/Makefile @@ -14,6 +14,11 @@ GH_ACCOUNT= ridiculousfish USES= cmake compiler:c++11-lang NO_ARCH= yes +# NEON support requires arm64 +CMAKE_OFF_armv6= LIBDIVIDE_NEON +CMAKE_OFF_armv7= LIBDIVIDE_NEON +CMAKE_OFF= ${CMAKE_OFF_${ARCH}} + PLIST_FILES= include/libdivide.h \ lib/cmake/libdivide/libdivideConfig.cmake \ lib/cmake/libdivide/libdivideConfigVersion.cmake -- cgit v1.2.3