Skip to content

Commit

Permalink
remove external linker in linux builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wiesenbauer committed Nov 22, 2022
1 parent c383f2a commit 540aeaf
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ builds:
main: ./cmd/cfssl
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
- -linkmode external -extldflags "-static"
env:
- CC=/usr/bin/musl-gcc
- id: cfssl-windows
binary: cfssl
env:
Expand Down Expand Up @@ -63,13 +60,8 @@ builds:
goarch:
- amd64
main: ./cmd/cfssl-bundle
flags:
- -trimpath
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
- -linkmode external -extldflags "-static"
env:
- CC=/usr/bin/musl-gcc
- id: cfssl-bundle-windows
binary: cfssl-bundle
env:
Expand Down Expand Up @@ -104,9 +96,6 @@ builds:
main: ./cmd/cfssl-certinfo
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
- -linkmode external -extldflags "-static"
env:
- CC=/usr/bin/musl-gcc
- id: cfssl-certinfo-windows
binary: cfssl-certinfo
env:
Expand Down Expand Up @@ -141,9 +130,6 @@ builds:
main: ./cmd/cfssl-newkey
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
- -linkmode external -extldflags "-static"
env:
- CC=/usr/bin/musl-gcc
- id: cfssl-newkey-windows
binary: cfssl-newkey
env:
Expand Down Expand Up @@ -178,9 +164,6 @@ builds:
main: ./cmd/cfssl-scan
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
- -linkmode external -extldflags "-static"
env:
- CC=/usr/bin/musl-gcc
- id: cfssl-scan-windows
binary: cfssl-scan
env:
Expand Down Expand Up @@ -215,9 +198,6 @@ builds:
main: ./cmd/cfssljson
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
- -linkmode external -extldflags "-static"
env:
- CC=/usr/bin/musl-gcc
- id: cfssljson-windows
binary: cfssljson
env:
Expand All @@ -235,6 +215,7 @@ builds:
env:
- CC=o64-clang
- CXX=o64-clang++
- CGO_ENABLED=1
goos:
- darwin
goarch:
Expand All @@ -251,9 +232,6 @@ builds:
main: ./cmd/mkbundle
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
- -linkmode external -extldflags "-static"
env:
- CC=/usr/bin/musl-gcc
- id: mkbundle-windows
binary: mkbundle
env:
Expand Down Expand Up @@ -288,9 +266,6 @@ builds:
main: ./cmd/multirootca
ldflags:
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
- -linkmode external -extldflags "-static"
env:
- CC=/usr/bin/musl-gcc
- id: multirootca-windows
binary: multirootca
env:
Expand Down

0 comments on commit 540aeaf

Please sign in to comment.