diff --git a/node/Makefile b/node/Makefile index 5786de84e1..5fc2c94974 100644 --- a/node/Makefile +++ b/node/Makefile @@ -1,3 +1,13 @@ +.PHONY test test: +# Use this command on amd64 systems go test -v -ldflags '-extldflags "-Wl,--allow-multiple-definition" ' ./... +.PHONY test-arm64 +test-arm64: +# Use this command on arm64, otherwise you will encounter linker errors. +# It's not perfect: it will fail due to 'undefined symbols' errors +# for packges using cgo. Still, it will get you farther than running +# the default command. +# To test a single package, use these -ldflags with e.g. ./pkg/governor + go test -ldflags '-extldflags "-Wl,-ld_classic " ' ./...