From e53c60f4f2b3fe9b2a06afd9fc92c00fbacda217 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Wed, 28 Jun 2023 15:59:01 -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 spmatrix. Adding -ffp-contract=off as on most other arches avoids that. Resolves: rhbz#2216730 --- gsl.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsl.spec b/gsl.spec index bad9e33..24255bb 100644 --- a/gsl.spec +++ b/gsl.spec @@ -42,7 +42,7 @@ mv THANKS.aux THANKS %build # disable FMA -%ifarch aarch64 ppc64 ppc64le s390 s390x +%ifarch aarch64 ppc64 ppc64le s390 s390x x86_64 export CFLAGS="%{optflags} -ffp-contract=off" %endif %configure