From 5a7db8c682457bd56d4cee7967befdc86de29885 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Thu, 8 Sep 2016 11:00:56 -0400 Subject: [PATCH] libcln: Use -DNO_ASM for arm build Also use tabs for indentation. --- packages/libcln/build.sh | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/packages/libcln/build.sh b/packages/libcln/build.sh index 89c58b2c7..c0125188b 100644 --- a/packages/libcln/build.sh +++ b/packages/libcln/build.sh @@ -6,17 +6,24 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-gnu-ld=no" TERMUX_PKG_BUILD_IN_SRC=yes termux_step_pre_configure() { - 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 + + 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 } termux_step_post_configure() { - cd $TERMUX_PKG_SRCDIR - sed -i -e 's% tests%%' Makefile - sed -i -e 's% examples%%' Makefile - sed -i -e 's% benchmarks%%' Makefile -} \ No newline at end of file + cd $TERMUX_PKG_SRCDIR + sed -i -e 's% tests%%' Makefile + sed -i -e 's% examples%%' Makefile + sed -i -e 's% benchmarks%%' Makefile +}