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:
parent
f6d849bb15
commit
fb21de2186
2
gd.spec
2
gd.spec
@ -145,7 +145,7 @@ CFLAGS="$RPM_OPT_FLAGS -DDEFAULT_FONTPATH='\"\
|
|||||||
CFLAGS="$CFLAGS -msse -mfpmath=sse"
|
CFLAGS="$CFLAGS -msse -mfpmath=sse"
|
||||||
%endif
|
%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
|
# workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1359680
|
||||||
export CFLAGS="$CFLAGS -ffp-contract=off"
|
export CFLAGS="$CFLAGS -ffp-contract=off"
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user