From e8c0ce33ebd7f750ad8d98c0aa0f65d111dee807 Mon Sep 17 00:00:00 2001 From: felddoteth <125703412+felddoteth@users.noreply.github.com> Date: Fri, 20 Oct 2023 23:24:04 -0400 Subject: [PATCH] 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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a263ab740..f54524ea2 100644 --- a/Makefile +++ b/Makefile @@ -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)