From b8f50c7aa92def657d80332de7e25476d2f07e1c Mon Sep 17 00:00:00 2001 From: panchenbo Date: Mon, 7 Aug 2023 11:24:46 +0800 Subject: [PATCH] add support for loongarch64 sw_64 (cherry picked from commit 8527a262655d07778d655a0a22871f484c190e81) --- SDL.spec | 5 ++++- SDL_config.h | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/SDL.spec b/SDL.spec index 9500320..9c0aa6d 100644 --- a/SDL.spec +++ b/SDL.spec @@ -1,7 +1,7 @@ Name: SDL Summary: A cross-platform multimedia library Version: 1.2.15 -Release: 38 +Release: 39 License: LGPLv2+ URL: http://www.libsdl.org/ @@ -107,6 +107,9 @@ rm -f %{buildroot}%{_libdir}/*.la %{_mandir}/man3/SDL*.3* %changelog +* Mon Aug 7 2023 panchenbo - 1.2.15-39 +- add support for loongarch64 sw_64 + * Fri Nov 5 2021 yixiangzhike - 1.2.15-38 - DESC: fix CVE-2019-7572 CVE-2019-7574 CVE-2019-7575 diff --git a/SDL_config.h b/SDL_config.h index 84eb112..53df3ae 100644 --- a/SDL_config.h +++ b/SDL_config.h @@ -73,6 +73,10 @@ #include "SDL_config-mips.h" #elif defined(__riscv) && defined(__riscv_xlen) && __riscv_xlen == 64 #include "SDL_config-riscv64.h" +#elif defined(__loongarch64) +#include "SDL_config-loongarch64.h" +#elif defined(__sw_64) +#include "SDL_config-sw_64.h" #else #error "The SDL-devel package is not usable with the architecture." #endif