Browse Source

net-tools: use LDLIBS to pass "-llog"

Fixes on-device build.

%ci:reset-backlog
android-5
Leonid Plyushch 6 years ago
parent
commit
78bebde6c9
No known key found for this signature in database GPG Key ID: 45F2964132545795
  1. 2
      packages/net-tools/build.sh

2
packages/net-tools/build.sh

@ -14,7 +14,7 @@ TERMUX_PKG_EXTRA_MAKE_ARGS="BINDIR=$TERMUX_PREFIX/bin SBINDIR=$TERMUX_PREFIX/bin
termux_step_configure() {
CFLAGS="$CFLAGS -D_LINUX_IN6_H -Dindex=strchr -Drindex=strrchr"
LDFLAGS="$LDFLAGS -llog"
export LDLIBS="-llog"
sed -i "s#/usr#$TERMUX_PREFIX#" $TERMUX_PKG_SRCDIR/man/Makefile
yes "" | make config || true
}

Loading…
Cancel
Save