aboutsummaryrefslogtreecommitdiffstats
path: root/community/git-lfs/makefile-extra_go_flags.patch
blob: 16e272890668b8b73d2205230be6969d287218ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- a/Makefile
+++ b/Makefile
@@ -128,7 +128,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)" \
 	-o ./bin/git-lfs$(3) $(BUILD_MAIN)
--- a/t/Makefile
+++ b/t/Makefile
@@ -37,4 +37,4 @@
 	$(RM) $(TEST_CMDS)
 
 ../bin/%$X : cmd/%.go
-	go build -o $@ $^
+	go build $(EXTRA_GO_FLAGS) -o $@ $^