aports/community/cs-firewall-bouncer/enable-cgo.patch
2024-03-11 13:53:10 +01:00

16 lines
659 B
Diff

Required to fix build with -buildmode=pie.
See: https://gitlab.alpinelinux.org/alpine/aports/-/issues/15809
diff -upr cs-firewall-bouncer-0.0.28.orig/Makefile cs-firewall-bouncer-0.0.28/Makefile
--- cs-firewall-bouncer-0.0.28.orig/Makefile 2024-03-11 12:16:54.821528260 +0100
+++ cs-firewall-bouncer-0.0.28/Makefile 2024-03-11 12:17:00.764879000 +0100
@@ -22,7 +22,6 @@ LD_OPTS_VARS=\
-X 'github.com/crowdsecurity/go-cs-lib/version.BuildDate=$(BUILD_TIMESTAMP)' \
-X 'github.com/crowdsecurity/go-cs-lib/version.Tag=$(BUILD_TAG)'
-export CGO_ENABLED=0
export LD_OPTS=-ldflags "-a -s -w -extldflags '-static' $(LD_OPTS_VARS)" \
-trimpath -tags netgo