Update Makefile (#8544)

Allow overriding go binary

On FreeBSD go binaries are installed as go118, go119, go120, etc.

This fixes the ability to build erigon with a command like:

GO=go120 gmake
This commit is contained in:
felddoteth 2023-10-20 23:24:04 -04:00 committed by GitHub
parent 7dce1268ab
commit e8c0ce33eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
GO = go # if using docker, should not need to be installed/linked
GO ?= go # if using docker, should not need to be installed/linked
GOBIN = $(CURDIR)/build/bin
UNAME = $(shell uname) # Supported: Darwin, Linux
DOCKER := $(shell command -v docker 2> /dev/null)