blob: c1437db65b062377dcf97069b17d9e582430f7e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--- 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 $@ $^
|