From 1b4cda656cd8e96420144f5dbe2119d2a37a6265 Mon Sep 17 00:00:00 2001 From: John Marshall Date: Mon, 1 Jul 2024 23:54:09 +1200 Subject: [PATCH] Define HAVE_ATTRIBUTE_CONSTRUCTOR on ARM too for non-configure builds --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 17d1baf97..75b570a34 100644 --- a/Makefile +++ b/Makefile @@ -298,8 +298,10 @@ config.h: if [ "x$(HTS_BUILD_AVX512)" != "x" ] ; then \ echo '#define HAVE_AVX512 1' >> $@ ; \ fi - echo '#if (defined(__x86_64__) || defined(_M_X64))' >> $@ + echo '#if defined __x86_64__ || defined __arm__ || defined __aarch64__' >> $@ echo '#define HAVE_ATTRIBUTE_CONSTRUCTOR 1' >> $@ + echo '#endif' >> $@ + echo '#if (defined(__x86_64__) || defined(_M_X64))' >> $@ echo '#define HAVE_ATTRIBUTE_TARGET 1' >> $@ echo '#define HAVE_BUILTIN_CPU_SUPPORT_SSSE3 1' >> $@ echo '#endif' >> $@