Skip to content

Commit 571f3ce

Browse files
committed
[Makefile] Add -trimpath to builds
1 parent f8d3016 commit 571f3ce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ uninstall:
4848
rm $(INSTLOC)/$(GIN)
4949

5050
$(BUILDLOC)/$(GIN): $(SOURCES)
51-
go build $(LDFLAGS) -o $(BUILDLOC)/$(GIN)
51+
go build -trimpath $(LDFLAGS) -o $(BUILDLOC)/$(GIN)
5252

5353
$(BUILDLOC)/linux/$(GIN): $(SOURCES)
54-
GOOS=linux GOARCH=amd64 go build -o $(BUILDLOC)/linux/$(GIN) $(LDFLAGS)
54+
GOOS=linux GOARCH=amd64 go build -trimpath -o $(BUILDLOC)/linux/$(GIN) $(LDFLAGS)
5555

5656
$(BUILDLOC)/windows/$(GIN).exe: $(SOURCES)
57-
GOOS=windows GOARCH=386 go build -o $(BUILDLOC)/windows32/$(GIN).exe $(LDFLAGS)
58-
GOOS=windows GOARCH=amd64 go build -o $(BUILDLOC)/windows64/$(GIN).exe $(LDFLAGS)
57+
GOOS=windows GOARCH=386 go build -trimpath -o $(BUILDLOC)/windows32/$(GIN).exe $(LDFLAGS)
58+
GOOS=windows GOARCH=amd64 go build -trimpath -o $(BUILDLOC)/windows64/$(GIN).exe $(LDFLAGS)
5959

6060
$(BUILDLOC)/darwin/$(GIN): $(SOURCES)
61-
GOOS=darwin GOARCH=amd64 go build -o $(BUILDLOC)/darwin/$(GIN) $(LDFLAGS)
61+
GOOS=darwin GOARCH=amd64 go build -trimpath -o $(BUILDLOC)/darwin/$(GIN) $(LDFLAGS)

0 commit comments

Comments
 (0)