From: Michael Tremer Date: Thu, 16 Apr 2020 05:20:22 +0000 (+0000) Subject: Config: Set some Go environment variables X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd7662382cc56b73cf6cee5dc853c4203dd4ab0c;p=people%2Fms%2Fipfire-2.x.git Config: Set some Go environment variables Signed-off-by: Michael Tremer --- diff --git a/lfs/Config b/lfs/Config index a278b01553..26d4631126 100644 --- a/lfs/Config +++ b/lfs/Config @@ -117,8 +117,18 @@ ifeq "$(BUILD_ARCH)" "aarch64" endif # Go +export GOARCH +export GOOS = linux export GOPATH = $(HOME)/gopath +ifeq "$(BUILD_ARCH)" "x86_64" + GOARCH = amd64 +endif + +ifeq "$(BUILD_ARCH)" "aarch64" + GOARCH = arm64 +endif + ############################################################################### # Common Macro Definitions ###############################################################################