gitea: attempt to fix build failure
This commit is contained in:
parent
8ed39a1702
commit
a0ddc853cf
@ -1,12 +0,0 @@
|
||||
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:
|
||||
- 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)
|
||||
|
||||
$(EXECUTABLE): $(GO_SOURCES)
|
||||
GO111MODULE=on $(GO) build -mod=vendor $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@
|
@ -16,10 +16,6 @@ termux_step_make() {
|
||||
cp -a "$TERMUX_PKG_SRCDIR" "$GOPATH"/src/code.gitea.io/gitea
|
||||
cd "$GOPATH"/src/code.gitea.io/gitea
|
||||
|
||||
# go-bindata shoudn't be cross-compiled
|
||||
GOOS=linux GOARCH=amd64 go get -u github.com/jteeuwen/go-bindata/...
|
||||
export PATH="$PATH:$GOPATH/bin"
|
||||
|
||||
LDFLAGS=""
|
||||
LDFLAGS+=" -X code.gitea.io/gitea/modules/setting.CustomConf=$TERMUX_PREFIX/etc/gitea/app.ini"
|
||||
LDFLAGS+=" -X code.gitea.io/gitea/modules/setting.AppWorkPath=$TERMUX_PREFIX/var/lib/gitea"
|
||||
|
Loading…
Reference in New Issue
Block a user