diff options
author | pkubaj <pkubaj@users.noreply.github.com> | 2021-01-15 18:05:24 +0000 |
---|---|---|
committer | Vas Crabb <cuavas@users.noreply.github.com> | 2021-01-16 05:09:59 +1100 |
commit | 9b030d87dc7e6d5f83fa2329121f9ce9867e6288 (patch) | |
tree | b95355370d54560636f8d39bcc2a21480193133d | |
parent | 8ebaec9f823577aae8772f4fa6d3a89407e368db (diff) |
Fix build on FreeBSD/powerpc64
FreeBSD uses powerpc64 name for what Linux calls ppc64.
-rw-r--r-- | makefile | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -322,6 +322,9 @@ endif ifeq ($(firstword $(filter ppc64,$(UNAME))),ppc64) ARCHITECTURE := _x64 endif +ifeq ($(firstword $(filter powerpc64,$(UNAME))),powerpc64) +ARCHITECTURE := _x64 +endif ifeq ($(firstword $(filter ppc64le,$(UNAME))),ppc64le) ARCHITECTURE := _x64 endif @@ -402,6 +405,13 @@ ifndef FORCE_DRC_C_BACKEND endif endif +# powerpc has inline assembly support but no DRC +ifeq ($(findstring powerpc,$(UNAME)),powerpc) +ifndef FORCE_DRC_C_BACKEND + FORCE_DRC_C_BACKEND := 1 +endif +endif + # ARM / ARM64 ifeq ($(findstring arm,$(UNAME)),arm) ifndef FORCE_DRC_C_BACKEND @@ -427,6 +437,14 @@ ifneq (,$(findstring s390x,$(UNAME))) BIGENDIAN := 1 endif endif # BIGENDIAN +# FreeBSD +ifneq (,$(findstring powerpc,$(UNAME))) +ifneq (,$(findstring powerpc64le,$(UNAME))) +BIGENDIAN := 0 +else +BIGENDIAN := 1 +endif +endif ifndef PYTHON_EXECUTABLE PYTHON := python |