From 70056f954248effea12e34ed50e0d514ba4b654d Mon Sep 17 00:00:00 2001 From: panchenbo Date: Tue, 22 Aug 2023 10:24:21 +0800 Subject: [PATCH] add loongarch64 and sw_64 support (cherry picked from commit 45b59d721031ef98d19f6c899e714dd1088df369) --- motif.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/motif.spec b/motif.spec index b4d4046..87027e7 100644 --- a/motif.spec +++ b/motif.spec @@ -1,6 +1,6 @@ Name: motif Version: 2.3.8 -Release: 2 +Release: 3 Summary: Run-time libraries and programs License: LGPLv2+ URL: https://motif.ics.com/ @@ -43,6 +43,12 @@ This package includes man files for %{name}. sed -i 's/-fno-strict-aliasing/-fstack-protector-strong -fno-strict-aliasing/g' configure.ac %build + +%ifarch loongarch64 sw_64 +%_update_config_guess +%_update_config_sub +%endif + CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64" ./autogen.sh --libdir=%{_libdir} --enable-static --enable-xft --enable-jpeg --enable-png @@ -82,6 +88,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %{_mandir}/man*/* %changelog +* Tue Aug 22 2023 panchenbo - 2.3.8-3 +- add loongarch64 and sw_64 support + * Thu Aug 25 2022 Ge Wang - 2.3.8-2 - add security compile option -fstack-protector-strong -- Gitee