From 4a891c493686bcc1c774d50427d1bbbabc6b3e88 Mon Sep 17 00:00:00 2001 From: NakanoMiku Date: Sat, 22 Feb 2025 22:09:17 +0800 Subject: [PATCH] addpatch: magma, ver=2.9.0-1 * Switch to mold to avoid lld's error * `unknown relocation (102) against symbol` * Remove magma-cuda since unsupported --- magma/loong.patch | 56 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 magma/loong.patch diff --git a/magma/loong.patch b/magma/loong.patch new file mode 100644 index 0000000..a80c791 --- /dev/null +++ b/magma/loong.patch @@ -0,0 +1,56 @@ +diff --git a/PKGBUILD b/PKGBUILD +index 2ef55de..b4b806b 100644 +--- a/PKGBUILD ++++ b/PKGBUILD +@@ -42,14 +42,14 @@ prepare() { + + cd "${srcdir}" + +- cp -r "${_pkgname}" "${_pkgname}-${pkgver}-cuda" + cp -r "${_pkgname}" "${_pkgname}-${pkgver}-hip" + ++ : < make.inc + make generate +- + cd "${srcdir}" ++COMMENT_SEPERATOR + + cd "${_pkgname}-${pkgver}-hip" + echo -e "BACKEND = hip\nFORT = true\nGPU_TARGET=$(_valid_gfx)" > make.inc +@@ -57,6 +57,7 @@ prepare() { + } + + build() { ++ : <