Skip to content

Commit

Permalink
Define HAVE_ATTRIBUTE_CONSTRUCTOR on ARM too for non-configure builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarshall authored and jkbonfield committed Jul 4, 2024
1 parent 256451f commit 1b4cda6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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' >> $@
Expand Down

0 comments on commit 1b4cda6

Please sign in to comment.