additional libraries should be specified in LIBS
instead of LDFLAGS
if using autotools
Fixes on-device build for: alpine, autossh, direvent, heyu, krb5, msmtp, redir, screen, socat, tinyproxy, tor.
This commit is contained in:
parent
0dba6f512d
commit
05203b0b01
@ -24,7 +24,7 @@ termux_step_pre_configure() {
|
|||||||
export alpine_SSLVERSION=old
|
export alpine_SSLVERSION=old
|
||||||
export TPATH=$PATH
|
export TPATH=$PATH
|
||||||
|
|
||||||
LDFLAGS+=" -lcrypt -llog"
|
export LIBS="-lcrypt -llog"
|
||||||
|
|
||||||
# To get S_IREAD and friends:
|
# To get S_IREAD and friends:
|
||||||
CPPFLAGS+=" -D__USE_BSD"
|
CPPFLAGS+=" -D__USE_BSD"
|
||||||
|
@ -11,5 +11,5 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--mandir=$TERMUX_PREFIX/share/man ac_cv_path_ss
|
|||||||
|
|
||||||
termux_step_pre_configure() {
|
termux_step_pre_configure() {
|
||||||
# For syslog logging:
|
# For syslog logging:
|
||||||
LDFLAGS+=" -llog"
|
export LIBS="-llog"
|
||||||
}
|
}
|
||||||
|
@ -7,5 +7,5 @@ TERMUX_PKG_SHA256=239822cdda9ecbbbc41a69181b34505b2d3badd4df5367e765a0ceb002883b
|
|||||||
TERMUX_PKG_DEPENDS="libandroid-glob"
|
TERMUX_PKG_DEPENDS="libandroid-glob"
|
||||||
|
|
||||||
termux_step_pre_configure() {
|
termux_step_pre_configure() {
|
||||||
LDFLAGS+=" -llog -landroid-glob"
|
export LIBS="-landroid-glob -llog"
|
||||||
}
|
}
|
||||||
|
@ -8,5 +8,5 @@ TERMUX_PKG_SRCURL=https://github.com/HeyuX10Automation/heyu/archive/v$TERMUX_PKG
|
|||||||
termux_step_pre_configure() {
|
termux_step_pre_configure() {
|
||||||
# rindex is an obsolete version of strrchr which is not available in Android:
|
# rindex is an obsolete version of strrchr which is not available in Android:
|
||||||
CFLAGS+=" -Drindex=strrchr"
|
CFLAGS+=" -Drindex=strrchr"
|
||||||
LDFLAGS+=" -llog"
|
export LIBS="-llog"
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ termux_step_pre_configure() {
|
|||||||
cp "$TERMUX_PKG_BUILDER_DIR/netbsd_getpass.c" "$TERMUX_PKG_SRCDIR/clients/kpasswd/"
|
cp "$TERMUX_PKG_BUILDER_DIR/netbsd_getpass.c" "$TERMUX_PKG_SRCDIR/clients/kpasswd/"
|
||||||
|
|
||||||
CFLAGS="$CFLAGS -D_PASSWORD_LEN=PASS_MAX"
|
CFLAGS="$CFLAGS -D_PASSWORD_LEN=PASS_MAX"
|
||||||
LDFLAGS="$LDFLAGS -landroid-glob -llog"
|
export LIBS="-landroid-glob -llog"
|
||||||
}
|
}
|
||||||
|
|
||||||
termux_step_post_make_install() {
|
termux_step_post_make_install() {
|
||||||
|
@ -8,6 +8,6 @@ TERMUX_PKG_DEPENDS="openssl, libidn2"
|
|||||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-tls=openssl"
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-tls=openssl"
|
||||||
|
|
||||||
termux_step_pre_configure() {
|
termux_step_pre_configure() {
|
||||||
LDFLAGS+=" -llog"
|
export LIBS="-llog"
|
||||||
autoreconf -if
|
autoreconf -if
|
||||||
}
|
}
|
||||||
|
@ -8,5 +8,5 @@ TERMUX_PKG_BUILD_IN_SRC=true
|
|||||||
TERMUX_PKG_RM_AFTER_INSTALL="share/applications share/pixmaps"
|
TERMUX_PKG_RM_AFTER_INSTALL="share/applications share/pixmaps"
|
||||||
|
|
||||||
termux_step_pre_configure() {
|
termux_step_pre_configure() {
|
||||||
LDFLAGS+=" -llog"
|
export LIBS="-llog"
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ termux_step_pre_configure() {
|
|||||||
# Run autoreconf since we have patched configure.ac
|
# Run autoreconf since we have patched configure.ac
|
||||||
autoconf
|
autoconf
|
||||||
CFLAGS+=" -DGETUTENT"
|
CFLAGS+=" -DGETUTENT"
|
||||||
LDFLAGS+=" -llog -lcrypt"
|
export LIBS="-lcrypt -llog"
|
||||||
}
|
}
|
||||||
|
|
||||||
termux_step_post_configure() {
|
termux_step_post_configure() {
|
||||||
|
@ -9,5 +9,5 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_header_resolv_h=no ac_cv_c_compiler_gnu=yes
|
|||||||
TERMUX_PKG_BUILD_IN_SRC=true
|
TERMUX_PKG_BUILD_IN_SRC=true
|
||||||
|
|
||||||
termux_step_pre_configure() {
|
termux_step_pre_configure() {
|
||||||
LDFLAGS="$LDFLAGS -llog" # uses syslog
|
export LIBS="-llog"
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ TERMUX_PKG_SRCURL=https://github.com/tinyproxy/tinyproxy/releases/download/${TER
|
|||||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-regexcheck"
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-regexcheck"
|
||||||
|
|
||||||
termux_step_pre_configure() {
|
termux_step_pre_configure() {
|
||||||
LDFLAGS+=" -llog"
|
export LIBS="-llog"
|
||||||
}
|
}
|
||||||
|
|
||||||
termux_step_post_massage() {
|
termux_step_post_massage() {
|
||||||
|
@ -11,7 +11,7 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-zstd --disable-unittests"
|
|||||||
TERMUX_PKG_CONFFILES="etc/tor/torrc"
|
TERMUX_PKG_CONFFILES="etc/tor/torrc"
|
||||||
|
|
||||||
termux_step_pre_configure() {
|
termux_step_pre_configure() {
|
||||||
LDFLAGS="$LDFLAGS -llog"
|
export LIBS="-llog"
|
||||||
}
|
}
|
||||||
|
|
||||||
termux_step_post_make_install() {
|
termux_step_post_make_install() {
|
||||||
|
Loading…
Reference in New Issue
Block a user