From 7d234f517516713f8715509a12edf07ca356c0b8 Mon Sep 17 00:00:00 2001 From: Dominik Honnef Date: Tue, 1 Jul 2014 11:16:18 +0200 Subject: [PATCH] go: Correctly build (cross-)compilers Without passing the --no-clean flag to make.bash, each build will overwrite the previous one. This means that we always ended up with a single compiler, that for x86_64. --- srcpkgs/go/template | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/srcpkgs/go/template b/srcpkgs/go/template index c4ca645754..f420e94159 100644 --- a/srcpkgs/go/template +++ b/srcpkgs/go/template @@ -32,17 +32,15 @@ do_build() { export GOOS=linux cd src - # ARM build - export GOARCH=arm - bash make.bash - # x86 build - export GOARCH=386 - bash make.bash + # TODO We could very well also build windows and darwin + # cross-compilers here, at no added complexity - # x86_64 build - export GOARCH=amd64 - bash make.bash + # Build ARM, x86 and x86_64 compilers + for arch in arm 386 amd64; do + export GOARCH=$arch + bash make.bash --no-clean + done } do_install() {