Issue-285: Detect TARGET_ARCH correctly for FreeBSD amd64 (uname -m returns amd64 not x86_64)
See: https://github.com/cloudflare/cloudflared/issues/285
This commit is contained in:
parent
27507ab192
commit
2bea3167c4
2
Makefile
2
Makefile
|
@ -34,6 +34,8 @@ ifneq ($(GOARCH),)
|
||||||
TARGET_ARCH ?= $(GOARCH)
|
TARGET_ARCH ?= $(GOARCH)
|
||||||
else ifeq ($(LOCAL_ARCH),x86_64)
|
else ifeq ($(LOCAL_ARCH),x86_64)
|
||||||
TARGET_ARCH ?= amd64
|
TARGET_ARCH ?= amd64
|
||||||
|
else ifeq ($(LOCAL_ARCH),amd64)
|
||||||
|
TARGET_ARCH ?= amd64
|
||||||
else ifeq ($(LOCAL_ARCH),i686)
|
else ifeq ($(LOCAL_ARCH),i686)
|
||||||
TARGET_ARCH ?= amd64
|
TARGET_ARCH ?= amd64
|
||||||
else ifeq ($(shell echo $(LOCAL_ARCH) | head -c 5),armv8)
|
else ifeq ($(shell echo $(LOCAL_ARCH) | head -c 5),armv8)
|
||||||
|
|
Loading…
Reference in New Issue