Do not pass -m64 to alpha, ia64, loong64 or riscv64 builds.
authorJordi Mallach <jordi@debian.org>
Wed, 5 Mar 2025 08:22:26 +0000 (09:22 +0100)
committerJordi Mallach <jordi@debian.org>
Wed, 5 Mar 2025 08:22:26 +0000 (09:22 +0100)
Forwarded: no
Last-Update: 2025-03-04

Gbp-Pq: Name ftbfs_alpha_ia64.patch

makefile

index fa859f8e0423436e55786b907dee8f811daa1667..63d179405fd06b234e17f2e373b60bb5e28299fe 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
@@ -407,6 +413,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