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.