From 4644f57becb2b4277bfcf4fbd583ea5ff5937466 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Sun, 22 Nov 2020 13:37:33 +0000 Subject: [PATCH] golang: fix build error --- packages/golang/build.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/golang/build.sh b/packages/golang/build.sh index be320ebf6..a61f38997 100644 --- a/packages/golang/build.sh +++ b/packages/golang/build.sh @@ -12,6 +12,8 @@ TERMUX_PKG_NO_STATICSPLIT=true termux_step_make_install() { termux_setup_golang + CGO_LDFLAGS=${CGO_LDFLAGS/-Wl,-z,relro,-z,now/} + TERMUX_GOLANG_DIRNAME=${GOOS}_$GOARCH TERMUX_GODIR=$TERMUX_PREFIX/lib/go