We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d08b2a9 commit 7e34c70Copy full SHA for 7e34c70
Makefile
@@ -757,10 +757,8 @@ security-check:
757
go run $(GOVULNCHECK_PACKAGE) -show color ./...
758
759
$(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
+ifneq ($(and $(STATIC),$(findstring pam,$(TAGS))),)
+ $(error pam support set via TAGS doesn't support static builds)
764
endif
765
CGO_ENABLED="$(CGO_ENABLED)" CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) build $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(EXTLDFLAGS) $(LDFLAGS)' -o $@
766
0 commit comments