aports/community/git-lfs/makefile-extra_go_flags.patch
2024-03-19 15:16:13 +00:00

25 lines
588 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
@@ -59,7 +59,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 $@ $^