Do not pass -m64 to alpha, ia64 or riscv64 builds.
authorJordi Mallach <jordi@debian.org>
Fri, 31 Jan 2025 11:40:38 +0000 (12:40 +0100)
committerCesare Falco <c.falco@ubuntu.com>
Fri, 31 Jan 2025 11:40:38 +0000 (12:40 +0100)
Forwarded: no
Last-Update: 2021-09-25

Gbp-Pq: Name ftbfs_alpha_ia64.patch

makefile

index c09a40e8c4f2dd001264af3f1b6d4d466f977050..3a749d0e992e2397a1464b857bfbccfce05e987f 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,20 @@ 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 riscv64,$(UNAME)),riscv64)
 ARCHITECTURE :=
 ifndef FORCE_DRC_C_BACKEND