From 82c5ba0f3253c653aa5b19bf8d64feea8c6fc5d3 Mon Sep 17 00:00:00 2001 From: Guost123 Date: Sat, 26 Apr 2025 17:30:20 +0800 Subject: [PATCH 1/2] adapt for riscv64 --- libffi.spec | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/libffi.spec b/libffi.spec index 78226ff..201c7e3 100644 --- a/libffi.spec +++ b/libffi.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 %bcond_with bootstrap @@ -60,7 +60,10 @@ developing applications that use %{name}. # gobject-introspection failures: # https://gitlab.haskell.org/ghc/ghc/-/issues/20051 # https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/283 -%configure --disable-static --disable-exec-static-tramp +%configure --disable-static --disable-exec-static-tramp \ + %ifarch riscv64 + --libdir=%{_libdir} \ + %endif %make_build %check @@ -71,6 +74,11 @@ developing applications that use %{name}. %install %make_install +%ifarch riscv64 +mv -v ${RPM_BUILD_ROOT}%{_libdir}/lp64d/* ${RPM_BUILD_ROOT}%{_libdir}/ +rm -rf ${RPM_BUILD_ROOT}%{_libdir}/lp64d +%endif + %files %license LICENSE %{_libdir}/libffi.so.8 @@ -87,6 +95,9 @@ developing applications that use %{name}. %{_infodir}/libffi.info.* %changelog +* Sat Apr 26 2025 Shangtong Guo - 3.4.4-3 +- add support for riscv64 build + * Wed Mar 12 2025 Chunchao Zhang - 3.4.4-2 - add sw_64 support -- Gitee From 98121bdf874edf0b2192e992dc56958e7389637e Mon Sep 17 00:00:00 2001 From: Guost123 Date: Mon, 28 Apr 2025 17:09:23 +0800 Subject: [PATCH 2/2] adapt for riscv64 --- libffi.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libffi.spec b/libffi.spec index 201c7e3..4199da6 100644 --- a/libffi.spec +++ b/libffi.spec @@ -60,10 +60,12 @@ developing applications that use %{name}. # gobject-introspection failures: # https://gitlab.haskell.org/ghc/ghc/-/issues/20051 # https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/283 -%configure --disable-static --disable-exec-static-tramp \ +%configure \ %ifarch riscv64 --libdir=%{_libdir} \ %endif + --disable-static \ + --disable-exec-static-tramp %make_build %check -- Gitee