From 18b4045c20c68d6b0bcec95aa05cd6b2667a537f Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 22 Jul 2019 16:34:33 +0200 Subject: [PATCH] build: `uname -m` is amd64 on freebsd, not x86_64 Fixes: https://github.com/nodejs/node/issues/13150 --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 58387ab6dd4d41..7ee2f18775cd67 100644 --- a/Makefile +++ b/Makefile @@ -806,6 +806,9 @@ UNAME_M=$(shell uname -m) ifeq ($(findstring x86_64,$(UNAME_M)),x86_64) DESTCPU ?= x64 else +ifeq ($(findstring amd64,$(UNAME_M)),amd64) +DESTCPU ?= x64 +else ifeq ($(findstring ppc64,$(UNAME_M)),ppc64) DESTCPU ?= ppc64 else @@ -865,6 +868,7 @@ endif endif endif endif +endif # node and v8 use different arch names (e.g. node 'x86' vs v8 'ia32'). # pass the proper v8 arch name to $V8_ARCH based on user-specified $DESTCPU.