From: Michael Tremer Date: Thu, 16 Apr 2020 19:27:06 +0000 (+0000) Subject: Config: Set some Go environment variables X-Git-Tag: v2.25-core144~24 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=b4863d7d141dd056a421e99a4f78060eba9d1038 Config: Set some Go environment variables Signed-off-by: Michael Tremer Signed-off-by: Arne Fitzenreiter --- 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 ###############################################################################