From 7d6df94df8d5d225fdb5ae1b6b5fc31559abd6f2 Mon Sep 17 00:00:00 2001 From: DengkeDu Date: Thu, 15 Dec 2016 10:27:19 +0800 Subject: [PATCH] In configure.in, it contains the following: APR_CHECK_SIZEOF_EXTENDED([#include ], off_t, 8) the macro "APR_CHECK_SIZEOF_EXTENDED" was defined in build/apr_common.m4, it use the "AC_TRY_RUN" macro, this macro let the off_t to 8, when cross compiling enable. So it was hardcoded for cross compiling, we should detect it dynamic based on the sysroot's glibc. We change it to the following: AC_CHECK_SIZEOF(off_t) Signed-off-by: DengkeDu --- configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.in b/configure.in index b406562a612..377c8ada88c 100644 --- a/configure.in +++ b/configure.in @@ -1786,7 +1786,7 @@ fi size_t_fmt="#define APR_SIZE_T_FMT \"$size_t_fmt\"" -APR_CHECK_SIZEOF_EXTENDED([#include ], off_t, 8) +AC_CHECK_SIZEOF(off_t) if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then # Enable LFS