aports/community/git-lfs2/makefile-extra_go_flags.patch
Jakub Jirutka 6708603fc4 community/git-lfs2: new aport
See !27376

Co-Authored-By: Simon Frankenberger <simon-alpine@fraho.eu>
2021-11-23 23:55:13 +01:00

25 lines
576 B
Diff

--- a/Makefile
+++ b/Makefile
@@ -136,7 +136,7 @@
# It uses BUILD_MAIN as defined above to specify the entrypoint for building Git
# LFS.
BUILD = GOOS=$(1) GOARCH=$(2) \
- $(GO) build \
+ $(GO) build $(EXTRA_GO_FLAGS) \
-ldflags="$(LD_FLAGS)" \
-gcflags="$(GC_FLAGS)" \
-asmflags="$(ASM_FLAGS)" \
--- a/t/Makefile
+++ b/t/Makefile
@@ -45,7 +45,7 @@
$(RM) $(TEST_CMDS)
../bin/%$X : cmd/%.go
- go build -o $@ $^
+ go build $(EXTRA_GO_FLAGS) -o $@ $^
../bin/git-lfs-test-server-api$X : $(TEST_API_SRCS)
- go build -o $@ $^
+ go build $(EXTRA_GO_FLAGS) -o $@ $^