diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2021-01-15 18:00:45 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2021-01-15 18:00:45 +0000 |
commit | 7d5c373ffabbcfb134e61a495dd8fc45cefe65b3 (patch) | |
tree | e94128a80d653af6ce7458ffe9f21cf15c1ecf6f /emulators/mame/files/patch-makefile | |
parent | audio/komposter: fix build on GCC architectures (diff) |
emulators/mame: fix build on powerpc64
Use on powerpc64 the same options that upstream uses on ppc64 (Linux name for our powerpc64).
MFH: 2021Q1
Diffstat (limited to 'emulators/mame/files/patch-makefile')
-rw-r--r-- | emulators/mame/files/patch-makefile | 43 |
1 files changed, 39 insertions, 4 deletions
diff --git a/emulators/mame/files/patch-makefile b/emulators/mame/files/patch-makefile index b8070a1b9f02..14f781dc5331 100644 --- a/emulators/mame/files/patch-makefile +++ b/emulators/mame/files/patch-makefile @@ -1,6 +1,41 @@ ---- makefile.orig 2020-10-27 02:00:36.000000000 +0100 -+++ makefile 2020-12-26 00:03:58.094364000 +0100 -@@ -419,15 +419,15 @@ +--- makefile.orig 2020-10-27 01:00:36 UTC ++++ makefile +@@ -319,6 +319,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 +@@ -399,6 +402,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 ++ + # Autodetect BIGENDIAN + # MacOSX + ifndef BIGENDIAN +@@ -416,18 +426,26 @@ endif + ifneq (,$(findstring s390x,$(UNAME))) + BIGENDIAN := 1 + endif ++# FreeBSD ++ifneq (,$(findstring powerpc,$(UNAME))) ++ifneq (,$(findstring powerpc64le,$(UNAME))) ++BIGENDIAN := 0 ++else ++BIGENDIAN := 1 ++endif ++endif endif # BIGENDIAN ifndef PYTHON_EXECUTABLE @@ -21,7 +56,7 @@ endif #------------------------------------------------- -@@ -558,19 +558,19 @@ +@@ -558,19 +576,19 @@ endif ifdef OVERRIDE_CC PARAMS += --CC='$(OVERRIDE_CC)' ifndef CROSS_BUILD |