Do not pass -m64 to alpha, ia64, loong64 or riscv64 builds.
authorJordi Mallach <jordi@debian.org>
Wed, 20 Aug 2025 11:02:00 +0000 (13:02 +0200)
committerJordi Mallach <jordi@debian.org>
Wed, 20 Aug 2025 11:02:00 +0000 (13:02 +0200)
Forwarded: no
Last-Update: 2025-03-04

Gbp-Pq: Name ftbfs_alpha_ia64.patch

makefile
scripts/genie.lua

index 5aa597ee0e709126820341154c8505ebcfddbee7..a54d254c1f418f6617456770290ac328efc3f9bf 100644 (file)
--- 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
index fab53dafec1f167a42044dfdb86ba69556da5b36..a8d61a01193a2604c56fbe00ecb82092026171f6 100644 (file)
@@ -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",