Skip to content

Commit 69fd662

Browse files
committed
goreleaser: improve portability
- Use tags=netgo to ensure net package won't use cgo - Rebuild stdlib (go build -a) to really disable cgo as it was tried in osrg#2300 - Remove static ldflags as it would statically compile cgo
1 parent 3c6f5da commit 69fd662

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.goreleaser.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ builds:
99
- id: gobgp
1010
main: ./cmd/gobgp/
1111
binary: gobgp
12-
ldflags: -s -extldflags "-static"
12+
flags:
13+
- -a
14+
- -tags=netgo
15+
ldflags: -s
1316
goos:
1417
- linux
1518
goarch:
@@ -21,7 +24,10 @@ builds:
2124
- id: gobgpd
2225
main: ./cmd/gobgpd/
2326
binary: gobgpd
24-
ldflags: -s -extldflags "-static"
27+
flags:
28+
- -a
29+
- -tags=netgo
30+
ldflags: -s
2531
goos:
2632
- linux
2733
goarch:

0 commit comments

Comments
 (0)