- cd $TERMUX_PKG_SRCDIR
- sed -i -e 's%tests/Makefile %%' configure.ac
- sed -i -e 's%examples/Makefile %%' configure.ac
- sed -i -e 's%benchmarks/Makefile %%' configure.ac
-
- autoreconf
+ if [ $TERMUX_ARCH = arm ]; then
+ # See the following section in INSTALL:
+ # "(*) On these platforms, problems with the assembler routines have been
+ # reported. It may be best to add "-DNO_ASM" to CPPFLAGS before configuring."
+ CPPFLAGS+=" -DNO_ASM"
+ fi
+
+ sed -i -e 's%tests/Makefile %%' configure.ac
+ sed -i -e 's%examples/Makefile %%' configure.ac
+ sed -i -e 's%benchmarks/Makefile %%' configure.ac
+
+ autoreconf