From: Iain Nicol Date: Sun, 6 Dec 2015 18:00:19 +0000 (+0000) Subject: Disable gnulib's rpl_getcwd() across all packages X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/termux-packages/commitdiff_plain/d2dfadf1f2c04276eb726a7c49f7c8a2b32349ed?hp=-c Disable gnulib's rpl_getcwd() across all packages This works around a bug in said function which was affecting zile. Fixes #76. --- d2dfadf1f2c04276eb726a7c49f7c8a2b32349ed diff --git a/build-package.sh b/build-package.sh index 3118d8ab..9176b4f3 100755 --- a/build-package.sh +++ b/build-package.sh @@ -351,6 +351,9 @@ termux_step_configure () { # about this problem which may cause linker errors in test scripts not undef:ing malloc and # also cause problems with e.g. malloc interceptors such as libgc: 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" env $AVOID_AUTOCONF_WRAPPERS $TERMUX_PKG_SRCDIR/configure \ --disable-dependency-tracking \