From e6974e6f3865e90edff6a8bfe62b595c82b61142 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 20 Aug 2018 15:04:40 +0200 Subject: [PATCH] libmpfr: Work around clang issue --- packages/libmpfr/build.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/libmpfr/build.sh b/packages/libmpfr/build.sh index 88a48f65f..8c8ecfce1 100755 --- a/packages/libmpfr/build.sh +++ b/packages/libmpfr/build.sh @@ -5,7 +5,10 @@ TERMUX_PKG_VERSION=4.0.1 TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/mpfr/mpfr-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SHA256=67874a60826303ee2fb6affc6dc0ddd3e749e9bfcb4c8655e3953d0458a6e16e TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_header_locale_h=no" -if [ "$TERMUX_ARCH" = i686 ]; then - # Avoid clang bug with NDK r16: - TERMUX_PKG_CLANG=no -fi + +termux_step_pre_configure() { + if [ "$TERMUX_ARCH" = i686 ]; then + # Fix clang internal error (on clang in ndk r17): + TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-float128" + fi +}