Browse Source

golang: Use clang for native build

android-5
Fredrik Fornwall 8 years ago
parent
commit
b4a6e58893
  1. 2
      packages/golang/build.sh
  2. 1
      scripts/setup-ubuntu.sh

2
packages/golang/build.sh

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

1
scripts/setup-ubuntu.sh

@ -5,6 +5,7 @@ PACKAGES="$PACKAGES ant" # Used by jack and aptsigner.
PACKAGES="$PACKAGES asciidoc"
PACKAGES="$PACKAGES automake"
PACKAGES="$PACKAGES bison"
PACKAGES="$PACKAGES clang" # Used by golang, useful to have same compiler building.
PACKAGES="$PACKAGES curl" # Used for fetching sources.
PACKAGES="$PACKAGES flex"
PACKAGES="$PACKAGES gettext" # Provides 'msgfmt' which the apt build uses.

Loading…
Cancel
Save