diff --git a/.goreleaser.yml b/.goreleaser.yml index 47f44d303a1..8ebb7137f12 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -14,7 +14,7 @@ builds: env: - CC=o64-clang - CXX=o64-clang++ - tags: [ nosqlite, noboltdb, nosilkworm ] + tags: [ nosqlite, noboltdb, nosilkworm, netgo ] ldflags: -s -w - id: darwin-arm64 @@ -25,7 +25,7 @@ builds: env: - CC=oa64-clang - CXX=oa64-clang++ - tags: [ nosqlite, noboltdb, nosilkworm ] + tags: [ nosqlite, noboltdb, nosilkworm, netgo ] ldflags: -s -w - id: linux-amd64 @@ -36,7 +36,7 @@ builds: env: - CC=x86_64-linux-gnu-gcc - CXX=x86_64-linux-gnu-g++ - tags: [ nosqlite, noboltdb, nosilkworm ] + tags: [ nosqlite, noboltdb, nosilkworm, netgo ] ldflags: -s -w -extldflags "-static" # We need to build a static binary because we are building in a glibc based system and running in a musl container - id: linux-arm64 @@ -47,7 +47,7 @@ builds: env: - CC=aarch64-linux-gnu-gcc - CXX=aarch64-linux-gnu-g++ - tags: [ nosqlite, noboltdb, nosilkworm ] + tags: [ nosqlite, noboltdb, nosilkworm, netgo ] ldflags: -s -w -extldflags "-static" # We need to build a static binary because we are building in a glibc based system and running in a musl container - id: windows-amd64 @@ -58,7 +58,7 @@ builds: env: - CC=x86_64-w64-mingw32-gcc - CXX=x86_64-w64-mingw32-g++ - tags: [ nosqlite, noboltdb, nosilkworm ] + tags: [ nosqlite, noboltdb, nosilkworm, netgo ] ldflags: -s -w diff --git a/Makefile b/Makefile index 3f719adf826..a2fd9cd2b0f 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ ifeq ($(shell uname -s), Darwin) endif # about netgo see: https://github.com/golang/go/issues/30310#issuecomment-471669125 and https://github.com/golang/go/issues/57757 -BUILD_TAGS = nosqlite,noboltdb +BUILD_TAGS = nosqlite,noboltdb,netgo ifneq ($(shell "$(CURDIR)/turbo/silkworm/silkworm_compat_check.sh"),) BUILD_TAGS := $(BUILD_TAGS),nosilkworm diff --git a/wmake.ps1 b/wmake.ps1 index 01a46755539..70d1cf76480 100644 --- a/wmake.ps1 +++ b/wmake.ps1 @@ -413,7 +413,7 @@ $Erigon.Commit = [string]@(git.exe rev-list -1 HEAD) $Erigon.Branch = [string]@(git.exe rev-parse --abbrev-ref HEAD) $Erigon.Tag = [string]@(git.exe describe --tags) -$Erigon.BuildTags = "nosqlite,noboltdb" +$Erigon.BuildTags = "nosqlite,noboltdb,netgo" $Erigon.Package = "github.com/ledgerwatch/erigon" $Erigon.BuildFlags = "-trimpath -tags $($Erigon.BuildTags) -buildvcs=false -v"