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.
This commit is contained in:
Yaakov Selkowitz 2023-06-28 16:16:50 -04:00
parent f6d849bb15
commit fb21de2186

View File

@ -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