From 756621cfff3981cd78000eb0af5035b6db34328c Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Sun, 21 Jul 2019 11:57:05 +0200 Subject: [PATCH] bettercap: set CGO_CFLAGS in build.sh (as well) --- root-packages/bettercap/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/root-packages/bettercap/build.sh b/root-packages/bettercap/build.sh index 8feeb3d7b..de12c2695 100644 --- a/root-packages/bettercap/build.sh +++ b/root-packages/bettercap/build.sh @@ -8,7 +8,8 @@ TERMUX_PKG_DEPENDS="libpcap, libusb" termux_step_configure() { termux_setup_golang - export GOPATH=$TERMUX_PKG_BUILDDIR + export GOPATH=$TERMUX_PKG_BUILDDIR + export CGO_CFLAGS="-I$TERMUX_PREFIX/include" mkdir -p "$GOPATH"/src/github.com/bettercap/ cp -a "$TERMUX_PKG_SRCDIR" "$GOPATH"/src/github.com/bettercap/bettercap