mirror of
https://github.com/holub/mame
synced 2025-06-03 03:16:30 +03:00
Fix build on FreeBSD/powerpc64
FreeBSD uses powerpc64 name for what Linux calls ppc64.
This commit is contained in:
parent
8ebaec9f82
commit
9b030d87dc
18
makefile
18
makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user