From 0144ff7b946b5137a57b6dfd4aa93ec74e8ab063 Mon Sep 17 00:00:00 2001 From: Huang Yang Date: Thu, 19 May 2022 15:18:58 +0800 Subject: [PATCH] add loongarch64 support --- SDL2.spec | 8 +++++++- SDL_config.h | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/SDL2.spec b/SDL2.spec index 652a269..92b5a2d 100644 --- a/SDL2.spec +++ b/SDL2.spec @@ -1,6 +1,6 @@ Name: SDL2 Version: 2.0.12 -Release: 4 +Release: 5 Summary: Cross-platform multimedia library License: zlib and MIT URL: http://www.libsdl.org/ @@ -93,6 +93,12 @@ rm -vf %{buildroot}%{_libdir}/*.la %{_libdir}/lib*.a %changelog ++* Sat May 14 2022 Huang Yang - 2.0.12-5 ++- Type:CVE ++- ID:NA ++- SUG:NA ++- DESC:add loongarch64 support (modified SDL_config.h) + * Mon Apr 11 2022 yaoxin - 2.0.12-4 - Fix CVE-2020-14409 CVE-2020-14410 diff --git a/SDL_config.h b/SDL_config.h index 7862549..a91c02d 100644 --- a/SDL_config.h +++ b/SDL_config.h @@ -76,6 +76,8 @@ #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" #else #error "The SDL2-devel package is not usable with the architecture." #endif -- Gitee