From dce1a134dae6418911880bf5766b906d4524e0aa Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Fri, 14 Jul 2017 23:18:28 +0200 Subject: [PATCH] par2: Fix i686 build --- packages/par2/build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/par2/build.sh b/packages/par2/build.sh index 3cb594bb3..e61d49abe 100644 --- a/packages/par2/build.sh +++ b/packages/par2/build.sh @@ -9,6 +9,9 @@ TERMUX_PKG_FOLDERNAME=par2cmdline-$TERMUX_PKG_VERSION TERMUX_PKG_BUILD_IN_SRC=yes termux_step_pre_configure() { + if [ $TERMUX_ARCH = "i686" ]; then + sed -i 's/LDADD = -lstdc++/LDADD = -lstdc++ -latomic/' $TERMUX_PKG_SRCDIR/Makefile.am + fi aclocal automake --add-missing autoconf