From 894bef74dd7a38ed5fbe54cc86aeccd1e559c687 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Thu, 16 Jan 2020 18:41:40 +0200 Subject: [PATCH] Add -ffp-contract=off to CFLAGS for riscv64 Signed-off-by: David Abdurachmanov --- gd.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gd.spec b/gd.spec index 3896ba0..ea25bc7 100644 --- a/gd.spec +++ b/gd.spec @@ -9,7 +9,7 @@ Summary: A graphics library for quick creation of PNG or JPEG images Name: gd Version: 2.2.5 -Release: 10%{?prever}%{?short}%{?dist} +Release: 10%{?prever}%{?short}.0.riscv64%{?dist} License: MIT URL: http://libgd.github.io/ %if 0%{?commit:1} @@ -122,7 +122,7 @@ CFLAGS="$RPM_OPT_FLAGS -DDEFAULT_FONTPATH='\"\ CFLAGS="$CFLAGS -msse -mfpmath=sse" %endif -%ifarch aarch64 ppc64 ppc64le s390 s390x +%ifarch aarch64 ppc64 ppc64le s390 s390x riscv64 # workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1359680 export CFLAGS="$CFLAGS -ffp-contract=off" %endif @@ -167,6 +167,9 @@ grep %{version} $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gdlib.pc %changelog +* Thu Jan 16 2019 David Abdurachmanov - 2.2.5-10.0.riscv64 +- Add -ffp-contract=off to CFLAGS for riscv64 + * Fri Nov 01 2019 odubaj@redhat.com - 2.2.5-10 - Fixed heap based buffer overflow in gd_color_match.c:gdImageColorMatch() in libgd as used in imagecolormatch() - Resolves: RHBZ#1678104 (CVE-2019-6977)