golang: Use clang for native build

This commit is contained in:
Fredrik Fornwall 2017-01-16 11:13:38 +01:00
parent 48d883791b
commit b4a6e58893
2 changed files with 2 additions and 1 deletions

View File

@ -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 \

View File

@ -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.