From e64870d816ebf8cf556c06ab1f5e70f1ec74a232 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sat, 7 Jul 2018 20:45:31 +0900 Subject: fix goreleaser to build static binaries Signed-off-by: FUJITA Tomonori --- .goreleaser.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to '.goreleaser.yml') diff --git a/.goreleaser.yml b/.goreleaser.yml index 7ec89d72..91690068 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -4,6 +4,7 @@ builds: - main: ./cmd/gobgp/ binary: gobgp + ldflags: -s -extldflags "-static" goos: - linux goarch: @@ -14,6 +15,7 @@ builds: - main: ./cmd/gobgpd/ binary: gobgpd + ldflags: -s -extldflags "-static" goos: - linux goarch: -- cgit v1.2.3