From 3775f5c6dde013f474b95c80354d506ada76bda3 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 30 Aug 2024 15:32:02 +0200 Subject: [PATCH] [build] Fix build flags for portmaster-start --- Earthfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Earthfile b/Earthfile index 2acb8550..9d016b08 100644 --- a/Earthfile +++ b/Earthfile @@ -202,7 +202,7 @@ go-build: ENV EXTRA_LD_FLAGS = "" END - RUN --no-cache go build -ldflags="-X github.com/safing/portmaster/base/info.version=${VERSION} -X github.com/safing/portmaster/base/info.buildSource=${SOURCE} -X github.com/safing/portmaster/base/info.buildTime=${BUILD_TIME}" -o "/tmp/build/" ./cmds/${bin} + RUN --no-cache go build -ldflags="${EXTRA_LD_FLAGS} -X github.com/safing/portmaster/base/info.version=${VERSION} -X github.com/safing/portmaster/base/info.buildSource=${SOURCE} -X github.com/safing/portmaster/base/info.buildTime=${BUILD_TIME}" -o "/tmp/build/" ./cmds/${bin} END DO +GO_ARCH_STRING --goos="${GOOS}" --goarch="${GOARCH}" --goarm="${GOARM}"