From 5f238884de5333042be19f7541bbef4c01305aba Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 29 Jul 2012 08:14:16 +0200 Subject: [PATCH] go: fix i686 build. --- srcpkgs/go/template | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/srcpkgs/go/template b/srcpkgs/go/template index 95f92bb429..6cbc3c1fa4 100644 --- a/srcpkgs/go/template +++ b/srcpkgs/go/template @@ -37,12 +37,14 @@ do_build() { cd src bash make.bash - cd ${wrksrc} - export GOROOT_FINAL="/usr/lib/go" - export GOOS=linux - export GOARCH=amd64 - cd src - bash make.bash + if [ "${XBPS_MACHINE}" = "x86_64" ]; then + cd ${wrksrc} + export GOROOT_FINAL="/usr/lib/go" + export GOOS=linux + export GOARCH=amd64 + cd src + bash make.bash + fi } do_install() {