From 9b3e53a522dad7136767ce0fe57f11f7b27ab6c6 Mon Sep 17 00:00:00 2001 From: laokz Date: Mon, 5 Jun 2023 09:44:40 +0000 Subject: [PATCH] riscv64: fix -ffp-contract error Signed-off-by: lvxiaoqian --- gd.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gd.spec b/gd.spec index 57035d6..28ae059 100644 --- a/gd.spec +++ b/gd.spec @@ -1,6 +1,6 @@ Name: gd Version: 2.3.3 -Release: 3 +Release: 4 Summary: A graphics library for quick creation of PNG or JPEG images License: MIT URL: http://libgd.github.io/ @@ -65,7 +65,7 @@ CFLAGS="$RPM_OPT_FLAGS -DDEFAULT_FONTPATH='\"\ export CFLAGS="$CFLAGS -msse -mfpmath=sse" %endif -%ifarch aarch64 ppc64 ppc64le s390 s390x loongarch64 +%ifarch aarch64 ppc64 ppc64le s390 s390x loongarch64 riscv64 # workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1359680 export CFLAGS="$CFLAGS -ffp-contract=off" %endif @@ -108,6 +108,9 @@ grep %{version} $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gdlib.pc %exclude %{_libdir}/libgd.a %changelog +* Mon Jun 05 2023 laokz - 2.3.3-4 +- fix build error for riscv64 + * Mon Feb 13 2023 zhangpan - 2.3.3-3 - fix build error for loongarch64 -- Gitee