Makefile: set CGO_ENABLED=1

This is required for building the guardiand binary
This commit is contained in:
cs 2023-10-24 17:25:58 +01:00 committed by Evan Gray
parent 03dc4c5c7d
commit fc39351b71
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ generate: dirs
node: $(BIN)/guardiand
.PHONY: $(BIN)/guardiand
$(BIN)/guardiand: CGO_ENABLED=1
$(BIN)/guardiand: dirs generate
@# The go-ethereum and celo-blockchain packages both implement secp256k1 using the exact same header, but that causes duplicate symbols.
cd node && go build -ldflags "-X github.com/certusone/wormhole/node/pkg/version.version=${VERSION} -extldflags -Wl,--allow-multiple-definition" \