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

Gbp-Pq: Name ftbfs_alpha_ia64.patch

makefile

index e15b8e42fe92cdd6e295411a544ad78bc4fc2c0e..e1946ee72ccb4d56ecf289bb99d485b469bfffcc 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