Do not pass -m64 to alpha, ia64 or riscv64 builds.
authorJordi Mallach <jordi@debian.org>
Thu, 26 Sep 2024 09:44:48 +0000 (11:44 +0200)
committerCesare Falco <c.falco@ubuntu.com>
Thu, 26 Sep 2024 09:44:48 +0000 (11:44 +0200)
Forwarded: no
Last-Update: 2021-09-25

Gbp-Pq: Name ftbfs_alpha_ia64.patch

makefile

index ddf809310a0bfd02f0a462010d62ffbbe42a8038..4f7155f661de20e562ded41230314cdad5e554a3 100644 (file)
--- a/makefile
+++ b/makefile
@@ -162,6 +162,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
@@ -409,6 +415,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