Browse Source

golang: Use gcc for host build

android-5
Fredrik Fornwall 7 years ago
parent
commit
6c8b6b7e0b
  1. 2
      packages/golang/build.sh

2
packages/golang/build.sh

@ -19,7 +19,7 @@ termux_step_make_install () {
cd $TERMUX_PKG_SRCDIR/src cd $TERMUX_PKG_SRCDIR/src
env CC_FOR_TARGET=$CC \ env CC_FOR_TARGET=$CC \
CXX_FOR_TARGET=$CXX \ CXX_FOR_TARGET=$CXX \
CC=clang \ CC=gcc \
GO_LDFLAGS="-extldflags=-pie" \ GO_LDFLAGS="-extldflags=-pie" \
GOROOT_BOOTSTRAP=$GOROOT \ GOROOT_BOOTSTRAP=$GOROOT \
GOROOT_FINAL=$TERMUX_GODIR \ GOROOT_FINAL=$TERMUX_GODIR \

Loading…
Cancel
Save