media-libs/gd: add workaround for rounding problem on some architectures
authorThomas Deutschmann <whissi@gentoo.org>
Sat, 9 Mar 2019 20:15:14 +0000 (21:15 +0100)
committerThomas Deutschmann <whissi@gentoo.org>
Sat, 9 Mar 2019 20:15:35 +0000 (21:15 +0100)
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 <whissi@gentoo.org>
media-libs/gd/gd-2.2.5-r2.ebuild

index 0dcb8668045e746fa1807a72331c2752edca910f..4e7248ab237ff64b45d90e18ede69ca251e40d74 100644 (file)
@@ -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.