Ensure MAX_BLOCK_SIZE is at least 16384 on aarch64 so that native block sizes can be used without the sub-page fallback.
Signed-off-by: Matthew Lear <[email protected]> --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index cf4de99..8a8e9b3 100644 --- a/configure.ac +++ b/configure.ac @@ -322,6 +322,10 @@ AS_IF([test "x$MAX_BLOCK_SIZE" = "x"], [ [erofs_cv_max_block_size=`cat conftest.out`], [erofs_cv_max_block_size=4096], [erofs_cv_max_block_size=4096])) + dnl Ensure aarch64 supports at least 16K + AS_CASE([$build_cpu], + [aarch64*], [AS_IF([test "$erofs_cv_max_block_size" -lt 16384], + [erofs_cv_max_block_size=16384])]) ], [erofs_cv_max_block_size=$MAX_BLOCK_SIZE]) # Configure multi-threading support -- 2.43.0
