diff --git a/component/golang/buildout.cfg b/component/golang/buildout.cfg index 4fc4a54168ec92ebd58e35b314ca628634996631..292e5838ad6fc87965bb1a7f66a5978846218d15 100644 --- a/component/golang/buildout.cfg +++ b/component/golang/buildout.cfg @@ -48,11 +48,20 @@ md5sum = dbf727a4b0e365bf88d97cbfde590016 environment-extra = # build Go without testing it # NOTE go1.4 does not have build cache -make-targets= cd src && unset GOBIN && ./make.bash && cp -alf .. ${:location} +setarch = +make-targets= cd src && unset GOBIN && ${:setarch} ./make.bash && cp -alf .. ${:location} + +# go1.4 is used for bootstrap and does not support CGO +environment-extra = + CGO_ENABLED=0 # skip-chown-tests.patch does not apply to go1.4, but we don't run go1.4 tests. patches = +# go1.4 does not have support for arm64 - build it in arm32 mode +[golang14:platform.machine() == 'aarch64'] +setarch = setarch arm + [golang1.12] <= golang-common