From d6fcd836c698855eb8d788fbb0f18011b2c64bff Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sun, 3 Jan 2016 08:48:50 -0500 Subject: [PATCH] Avoid enabling gnulib fcntl wrapper This lessens bloat and fixes 64-bit compiles (the gnulib fcntl wrapper uses getdtablesize() which does not exist for 64-bit). --- build-package.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-package.sh b/build-package.sh index 270fc4031..631ec52c4 100755 --- a/build-package.sh +++ b/build-package.sh @@ -354,7 +354,8 @@ termux_step_configure () { local AVOID_AUTOCONF_WRAPPERS="ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes" # Similarly, disable gnulib's rpl_getcwd(). It returns the wrong value, affecting zile. See # . - local AVOID_AUTOCONF_WRAPPERS="gl_cv_func_getcwd_null=yes gl_cv_func_getcwd_posix_signature=yes gl_cv_func_getcwd_path_max=yes gl_cv_func_getcwd_abort_bug=no $AVOID_AUTOCONF_WRAPPERS" + AVOID_AUTOCONF_WRAPPERS+=" gl_cv_func_getcwd_null=yes gl_cv_func_getcwd_posix_signature=yes gl_cv_func_getcwd_path_max=yes gl_cv_func_getcwd_abort_bug=no" + AVOID_AUTOCONF_WRAPPERS+=" gl_cv_header_working_fcntl_h=yes gl_cv_func_fcntl_f_dupfd_cloexec=yes gl_cv_func_fcntl_f_dupfd_works=yes" env $AVOID_AUTOCONF_WRAPPERS $TERMUX_PKG_SRCDIR/configure \ --disable-dependency-tracking \