openblas/0001-modify-the-ABI-for-loongarch.patch
2023-03-09 20:31:47 +08:00

28 lines
766 B
Diff

From b13db2656d6e983a77b3d203b4af51ba15f2f815 Mon Sep 17 00:00:00 2001
From: zhaozhen <zhaozhen@loongson.cn>
Date: Thu, 9 Mar 2023 11:50:01 +0000
Subject: [PATCH] modify the ABI for loongarch64
---
OpenBLAS-0.3.18/Makefile.system | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git OpenBLAS-0.3.18/Makefile.system OpenBLAS-0.3.18/Makefile.system
index 150dbef..f9101af 100644
--- OpenBLAS-0.3.18/Makefile.system
+++ OpenBLAS-0.3.18/Makefile.system
@@ -869,8 +869,8 @@ endif
ifeq ($(ARCH), loongarch64)
ifeq ($(CORE), LOONGSON3R5)
-CCOMMON_OPT += -march=loongarch64 -mabi=lp64
-FCOMMON_OPT += -march=loongarch64 -mabi=lp64
+CCOMMON_OPT += -march=loongarch64 -mabi=lp64d
+FCOMMON_OPT += -march=loongarch64 -mabi=lp64d
endif
endif
--
2.33.0