Skip to content

Commit 8f1946a

Browse files
committed
pam err
1 parent 508c63c commit 8f1946a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,11 @@ security-check:
757757
go run $(GOVULNCHECK_PACKAGE) -show color ./...
758758

759759
$(EXECUTABLE): $(GO_SOURCES) $(TAGS_PREREQ)
760+
ifneq ($(STATIC),)
761+
ifneq (,$(findstring pam,$(TAGS)))
762+
$(error pam support set via TAGS dont support static builds)
763+
endif
764+
endif
760765
CGO_ENABLED="$(CGO_ENABLED)" CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) build $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(EXTLDFLAGS) $(LDFLAGS)' -o $@
761766

762767
.PHONY: release

0 commit comments

Comments
 (0)