From: Jordi Mallach Date: Sun, 6 Apr 2025 14:23:13 +0000 (+0200) Subject: Do not pass -m64 to alpha, ia64, loong64 or riscv64 builds. X-Git-Tag: archive/raspbian/0.276+dfsg.1-1+rpi1^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d7d55741b90e69cfec01dcf28cfe48fc6536e39c;p=mame.git Do not pass -m64 to alpha, ia64, loong64 or riscv64 builds. Forwarded: no Last-Update: 2025-03-04 Gbp-Pq: Name ftbfs_alpha_ia64.patch --- diff --git a/makefile b/makefile index 5aa597ee0..a54d254c1 100644 --- a/makefile +++ b/makefile @@ -161,6 +161,12 @@ endif ifneq ($(filter alpha,$(UNAME_P)),) PLATFORM := alpha endif +ifneq ($(filter ia64,$(UNAME_M)),) +PLATFORM := ia64 +endif +ifneq ($(filter ia64,$(UNAME_P)),) +PLATFORM := ia64 +endif ifneq ($(filter arm%,$(UNAME_M)),) PLATFORM := arm endif @@ -176,6 +182,12 @@ endif ifneq ($(filter aarch64%,$(UNAME_P)),) PLATFORM := arm64 endif +ifneq ($(filter loongarch64,$(UNAME_M)),) +PLATFORM := loong64 +endif +ifneq ($(filter loongarch64,$(UNAME_P)),) +PLATFORM := loong64 +endif ifneq ($(filter powerpc,$(UNAME_P)),) PLATFORM := powerpc endif @@ -407,6 +419,27 @@ ifndef FORCE_DRC_C_BACKEND endif endif +ifeq ($(findstring alpha,$(UNAME)),alpha) +ARCHITECTURE := +ifndef FORCE_DRC_C_BACKEND + FORCE_DRC_C_BACKEND := 1 +endif +endif + +ifeq ($(findstring ia64,$(UNAME)),ia64) +ARCHITECTURE := +ifndef FORCE_DRC_C_BACKEND + FORCE_DRC_C_BACKEND := 1 +endif +endif + +ifeq ($(findstring loongarch64,$(UNAME)),loongarch64) +ARCHITECTURE := +ifndef FORCE_DRC_C_BACKEND + FORCE_DRC_C_BACKEND := 1 +endif +endif + ifeq ($(findstring riscv64,$(UNAME)),riscv64) ARCHITECTURE := ifndef FORCE_DRC_C_BACKEND diff --git a/scripts/genie.lua b/scripts/genie.lua index fab53dafe..a8d61a011 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -1129,6 +1129,12 @@ if (_OPTIONS["PLATFORM"]=="arm64") then } end +if (_OPTIONS["PLATFORM"]=="loong64") then + defines { + "PTR64=1", + } +end + if (_OPTIONS["PLATFORM"]=="riscv64") then defines { "PTR64=1",