This commit is contained in:
m.huber 2025-07-24 17:41:43 +02:00
parent 508c63cfc3
commit 8f1946ac13

View File

@ -757,6 +757,11 @@ security-check:
go run $(GOVULNCHECK_PACKAGE) -show color ./...
$(EXECUTABLE): $(GO_SOURCES) $(TAGS_PREREQ)
ifneq ($(STATIC),)
ifneq (,$(findstring pam,$(TAGS)))
$(error pam support set via TAGS dont support static builds)
endif
endif
CGO_ENABLED="$(CGO_ENABLED)" CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) build $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(EXTLDFLAGS) $(LDFLAGS)' -o $@
.PHONY: release