Skip to content

Commit 81a23c2

Browse files
committed
Add build_static
1 parent e0c7abc commit 81a23c2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ VERSION_TAG=0.2.0
88
all: install test
99

1010
install: get_vendor_deps
11-
@go install --ldflags '-extldflags "-static"' \
11+
@go install \
1212
--ldflags "-X github.com/tendermint/ethermint/version.GitCommit=`git rev-parse HEAD`" \
1313
./cmd/ethermint
1414

@@ -17,6 +17,11 @@ build:
1717
--ldflags "-X github.com/tendermint/ethermint/version.GitCommit=`git rev-parse HEAD`" \
1818
-o ./build/ethermint ./cmd/ethermint
1919

20+
build_static:
21+
@go build \
22+
--ldflags "-extldflags '-static' -X github.com/tendermint/ethermint/version.GitCommit=`git rev-parse HEAD`" \
23+
-o ./build/ethermint ./cmd/ethermint
24+
2025
build_race:
2126
@go build -race -o build/ethermint ./cmd/ethermint
2227

0 commit comments

Comments
 (0)