From 318d14f44b3ca09cb2805071507ca749f5c1f44b Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 7 Feb 2023 16:29:31 +0100 Subject: [PATCH] Makefile: use $GO variable when setting GOOS and GOARCH --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a8c7a85..7ab8bea 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,8 @@ export PROGRAM_VERSION = 1.4.1 GO = go PREFIX = /usr/local -export GOOS = $(shell go env GOOS) -export GOARCH = $(shell go env GOARCH) +export GOOS = $(shell $(GO) env GOOS) +export GOARCH = $(shell $(GO) env GOARCH) GOBUILDFLAGS = -v -ldflags='-v -s -w -X main.VersionString=$(PROGRAM_VERSION)' DPKG_BUILDPACKAGE = dpkg-buildpackage