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: