Compare commits

...

1 Commits

Author SHA1 Message Date
David Abdurachmanov 894bef74dd
Add -ffp-contract=off to CFLAGS for riscv64
Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
2020-01-16 18:41:40 +02:00
1 changed files with 5 additions and 2 deletions

View File

@ -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 <david.abdurachmanov@sifive.com> - 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)