aports/testing/woodpecker/no-ext-static.patch
2023-11-13 23:05:17 +00:00

12 lines
385 B
Diff

--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ else
endif
endif
-LDFLAGS := -s -w -extldflags "-static" -X go.woodpecker-ci.org/woodpecker/version.Version=${BUILD_VERSION}
+LDFLAGS := -X github.com/woodpecker-ci/woodpecker/version.Version=${BUILD_VERSION}
CGO_ENABLED ?= 1 # only used to compile server
HAS_GO = $(shell hash go > /dev/null 2>&1 && echo "GO" || echo "NOGO" )