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