From 10f4528e3735b049f30b482804b4f9fb1db7eeef Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Wed, 23 Sep 2020 21:55:12 +0200 Subject: [PATCH] libllvm: fix compiler-rt build error for 32bit arches Really not sure if this is safe or has side effects, needs to be tested. --- packages/libllvm/build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/libllvm/build.sh b/packages/libllvm/build.sh index e174ceae0..020dcf999 100644 --- a/packages/libllvm/build.sh +++ b/packages/libllvm/build.sh @@ -51,6 +51,12 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" -DPERL_EXECUTABLE=$(which perl) -DLLVM_ENABLE_FFI=ON " + +if [ $TERMUX_ARCH_BITS = 32 ]; then + # Do not set _FILE_OFFSET_BITS=64 + TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -DLLVM_FORCE_SMALLFILE_FOR_ANDROID=on" +fi + TERMUX_PKG_FORCE_CMAKE=true TERMUX_PKG_HAS_DEBUG=false # Debug build succeeds but make install with: