From fb21de21861d8596106dcb9010a0d46b13e2f095 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Wed, 28 Jun 2023 16:16:50 -0400 Subject: [PATCH] Fix build with -march=x86-64-v3 While it hasn't been necessary for x86_64 baseline, setting -march=x86-64-v3 (as in ELN) triggers test failures in gdimagecopyresampled/bug00201 and gdimagegrayscale/basic. Adding -ffp-contract=off as on most other arches avoids that. --- gd.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gd.spec b/gd.spec index 22e738e..9c0f666 100644 --- a/gd.spec +++ b/gd.spec @@ -145,7 +145,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 x86_64 # workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1359680 export CFLAGS="$CFLAGS -ffp-contract=off" %endif