Commits

Rodrigo Bistolfi committed 8660888

golang: declare GOHOSTARCH

Comments (0)

Files changed (1)

var/vabs/go/src/go.SlackBuild

   CONFIGURE_TRIPLET="i486-vector-linux"
   LIBDIRSUFFIX=""
   GOARCH="386"
+  GOHOSTARCH="386"
 elif [ "$ARCH" = "x86_64" ]; then
   SLKCFLAGS="-O2 -fpic"
   CONFIGURE_TRIPLET="x86_64-vlocity-linux"
   LIBDIRSUFFIX="64"
   GOARCH="amd64"
+  GOHOSTARCH="amd64"
 elif [ "$ARCH" = "powerpc" ]; then
   SLKCFLAGS="-O2"
   CONFIGURE_TRIPLET="powerpc-vlocity-linux"
 export GOOS="linux"
 export GOBIN="${GOROOT}/bin"
 export GOARCH="${GOARCH}"
+export GOHOSTARCH=${GOHOSTARCH}
 
 mkdir -p "${GOBIN}"
 cd src