Browse Source

lftp: specify correct location for zlib

emacs-27
Leonid Plyushch 6 years ago
parent
commit
b01ae6efbc
  1. 2
      packages/lftp/build.sh

2
packages/lftp/build.sh

@ -12,12 +12,12 @@ ac_cv_func_dn_expand=no
--with-openssl
--with-expat=$TERMUX_PREFIX
--with-readline=$TERMUX_PREFIX
--with-zlib=$TERMUX_PREFIX
"
TERMUX_PKG_DEPENDS="libexpat, openssl, readline, libidn2, zlib"
TERMUX_PKG_BUILD_DEPENDS="ncurses-dev"
termux_step_pre_configure() {
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-zlib=$TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr"
if [ "$TERMUX_DEBUG" == "true" ]; then
# When doing debug build, -D_FORTIFY_SOURCE=2 gives this error:
# /home/builder/.termux-build/_lib/16-aarch64-21-v3/bin/../sysroot/usr/include/bits/fortify/string.h:79:26: error: use of undeclared identifier '__USE_FORTIFY_LEVEL'

Loading…
Cancel
Save