1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 03:09:51 +03:00
aports/community/cs-firewall-bouncer/enable-cgo.patch
2024-09-30 20:58:37 +02:00

15 lines
603 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.31.orig/Makefile cs-firewall-bouncer-0.0.31/Makefile
--- cs-firewall-bouncer-0.0.31.orig/Makefile 2024-03-11 12:16:54.821528260 +0100
+++ cs-firewall-bouncer-0.0.31/Makefile 2024-03-11 12:17:00.764879000 +0100
@@ -23,7 +23,6 @@ ifneq (,$(DOCKER_BUILD))
LD_OPTS_VARS += -X 'github.com/crowdsecurity/go-cs-lib/version.System=docker'
endif
-export CGO_ENABLED=0
export LD_OPTS=-ldflags "-s -extldflags '-static' $(LD_OPTS_VARS)" \
-trimpath -tags netgo