inetutils: fix for on-device builds

This commit is contained in:
Leonid Pliushch 2019-08-16 17:17:22 +03:00
parent c0a4798f07
commit 5cb8b1a75d
2 changed files with 14 additions and 2 deletions

View File

@ -22,10 +22,10 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-rsh
--disable-traceroute
--disable-uucpd
ac_cv_lib_crypt_crypt=no
"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_lib_crypt_crypt=no"
termux_step_pre_configure() {
CPPFLAGS+=" -DLOGIN_PROCESS=6 -DDEAD_PROCESS=8 -DLOG_NFACILITIES=24"
LDFLAGS+=" -llog" # for syslog
export LIBS="-llog" # for syslog
}

View File

@ -0,0 +1,12 @@
diff -uNr inetutils-1.9.4/configure inetutils-1.9.4.mod/configure
--- inetutils-1.9.4/configure 2015-06-09 10:53:47.000000000 +0300
+++ inetutils-1.9.4.mod/configure 2019-08-16 17:07:41.868736971 +0300
@@ -15894,7 +15894,7 @@
if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
-$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
+#$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
LIBTHREAD=
LTLIBTHREAD=