gitea: update Makefile.patch

This commit is contained in:
Leonid Pliushch 2020-03-08 19:38:34 +02:00
parent 02a2c53d11
commit 08a4cc877f

View File

@ -1,12 +1,12 @@
diff -uNr gitea-1.11.1/Makefile gitea-1.11.1.mod/Makefile
--- gitea-1.11.1/Makefile 2020-02-17 01:22:39.000000000 +0200
+++ gitea-1.11.1.mod/Makefile 2020-02-17 18:30:57.301574003 +0200
@@ -158,7 +158,7 @@
diff -uNr gitea-1.11.2/Makefile gitea-1.11.2.mod/Makefile
--- gitea-1.11.2/Makefile 2020-03-06 09:38:11.000000000 +0200
+++ gitea-1.11.2.mod/Makefile 2020-03-08 19:37:43.594425248 +0200
@@ -430,7 +430,7 @@
.PHONY: generate
generate: js css
generate:
- GO111MODULE=on $(GO) generate -mod=vendor $(PACKAGES)
+ GO111MODULE=on CGO_ENABLED=0 CGO_LDFLAGS="" CGO_CFLAGS="" GOOS=linux GOARCH=amd64 $(GO) generate -mod=vendor $(PACKAGES)
.PHONY: generate-swagger
generate-swagger:
$(EXECUTABLE): $(GO_SOURCES)
GO111MODULE=on $(GO) build -mod=vendor $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@