From: Thomas Deutschmann Date: Sat, 9 Mar 2019 20:15:14 +0000 (+0100) Subject: media-libs/gd: add workaround for rounding problem on some architectures X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=cfaa0221b7202553c854c0a791894c928b7fc13a;p=gentoo.git media-libs/gd: add workaround for rounding problem on some architectures Bug: https://github.com/libgd/libgd/issues/278 Closes: https://bugs.gentoo.org/632076 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Thomas Deutschmann --- diff --git a/media-libs/gd/gd-2.2.5-r2.ebuild b/media-libs/gd/gd-2.2.5-r2.ebuild index 0dcb8668045e..4e7248ab237f 100644 --- a/media-libs/gd/gd-2.2.5-r2.ebuild +++ b/media-libs/gd/gd-2.2.5-r2.ebuild @@ -66,6 +66,11 @@ multilib_src_configure() { append-cflags -ffloat-store fi + # bug 632076, https://github.com/libgd/libgd/issues/278 + if use arm64 || use ppc64 || use s390 ; then + append-cflags -ffp-contract=off + fi + # we aren't actually {en,dis}abling X here ... the configure # script uses it just to add explicit -I/-L paths which we # don't care about on Gentoo systems.