Skip to content

Commit 7e34c70

Browse files
committed
combine
1 parent d08b2a9 commit 7e34c70

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -757,10 +757,8 @@ 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
760+
ifneq ($(and $(STATIC),$(findstring pam,$(TAGS))),)
761+
$(error pam support set via TAGS doesn't support static builds)
764762
endif
765763
CGO_ENABLED="$(CGO_ENABLED)" CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) build $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(EXTLDFLAGS) $(LDFLAGS)' -o $@
766764

0 commit comments

Comments
 (0)