From b4a6e588933ba55149ae4311ffd50a89940eb84b Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 16 Jan 2017 11:13:38 +0100 Subject: [PATCH] golang: Use clang for native build --- packages/golang/build.sh | 2 +- scripts/setup-ubuntu.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/golang/build.sh b/packages/golang/build.sh index 9ef70f9aa..67f6225af 100644 --- a/packages/golang/build.sh +++ b/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 \ diff --git a/scripts/setup-ubuntu.sh b/scripts/setup-ubuntu.sh index 3151fc282..3177026b1 100755 --- a/scripts/setup-ubuntu.sh +++ b/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.