Use CGO_ENABLED=0 for static binary

This commit is contained in:
Jan Dittberner 2022-08-19 16:48:32 +02:00
parent 2affaa2150
commit 0effaaa586

View file

@ -16,7 +16,7 @@ translations: $(TRANSLATIONS) $(GOFILES)
fi fi
cacert-idp: go.sum $(GOFILES) $(TEMPLATES) translations cacert-idp: go.sum $(GOFILES) $(TEMPLATES) translations
go build -o $@ ./cmd/idp.go CGO_ENABLED=0 go build -o $@ ./cmd/idp.go
clean: clean:
rm -f cacert-idp rm -f cacert-idp