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:
Leonid Pliushch 2019-08-13 17:10:55 +03:00
parent 0dba6f512d
commit 05203b0b01
11 changed files with 11 additions and 11 deletions

View File

@ -24,7 +24,7 @@ termux_step_pre_configure() {
export alpine_SSLVERSION=old
export TPATH=$PATH
LDFLAGS+=" -lcrypt -llog"
export LIBS="-lcrypt -llog"
# To get S_IREAD and friends:
CPPFLAGS+=" -D__USE_BSD"

View File

@ -11,5 +11,5 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--mandir=$TERMUX_PREFIX/share/man ac_cv_path_ss
termux_step_pre_configure() {
# For syslog logging:
LDFLAGS+=" -llog"
export LIBS="-llog"
}

View File

@ -7,5 +7,5 @@ TERMUX_PKG_SHA256=239822cdda9ecbbbc41a69181b34505b2d3badd4df5367e765a0ceb002883b
TERMUX_PKG_DEPENDS="libandroid-glob"
termux_step_pre_configure() {
LDFLAGS+=" -llog -landroid-glob"
export LIBS="-landroid-glob -llog"
}

View File

@ -8,5 +8,5 @@ TERMUX_PKG_SRCURL=https://github.com/HeyuX10Automation/heyu/archive/v$TERMUX_PKG
termux_step_pre_configure() {
# rindex is an obsolete version of strrchr which is not available in Android:
CFLAGS+=" -Drindex=strrchr"
LDFLAGS+=" -llog"
export LIBS="-llog"
}

View File

@ -38,7 +38,7 @@ termux_step_pre_configure() {
cp "$TERMUX_PKG_BUILDER_DIR/netbsd_getpass.c" "$TERMUX_PKG_SRCDIR/clients/kpasswd/"
CFLAGS="$CFLAGS -D_PASSWORD_LEN=PASS_MAX"
LDFLAGS="$LDFLAGS -landroid-glob -llog"
export LIBS="-landroid-glob -llog"
}
termux_step_post_make_install() {

View File

@ -8,6 +8,6 @@ TERMUX_PKG_DEPENDS="openssl, libidn2"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-tls=openssl"
termux_step_pre_configure() {
LDFLAGS+=" -llog"
export LIBS="-llog"
autoreconf -if
}

View File

@ -8,5 +8,5 @@ TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_RM_AFTER_INSTALL="share/applications share/pixmaps"
termux_step_pre_configure() {
LDFLAGS+=" -llog"
export LIBS="-llog"
}

View File

@ -16,7 +16,7 @@ termux_step_pre_configure() {
# Run autoreconf since we have patched configure.ac
autoconf
CFLAGS+=" -DGETUTENT"
LDFLAGS+=" -llog -lcrypt"
export LIBS="-lcrypt -llog"
}
termux_step_post_configure() {

View File

@ -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_step_pre_configure() {
LDFLAGS="$LDFLAGS -llog" # uses syslog
export LIBS="-llog"
}

View File

@ -7,7 +7,7 @@ TERMUX_PKG_SRCURL=https://github.com/tinyproxy/tinyproxy/releases/download/${TER
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-regexcheck"
termux_step_pre_configure() {
LDFLAGS+=" -llog"
export LIBS="-llog"
}
termux_step_post_massage() {

View File

@ -11,7 +11,7 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-zstd --disable-unittests"
TERMUX_PKG_CONFFILES="etc/tor/torrc"
termux_step_pre_configure() {
LDFLAGS="$LDFLAGS -llog"
export LIBS="-llog"
}
termux_step_post_make_install() {