From a9cd3c07ae83df3237d8ed39968855f9158a7087 Mon Sep 17 00:00:00 2001 From: Andrea Bocci Date: Sun, 11 Jan 2026 10:59:24 +0100 Subject: [PATCH] Do not use -Ofast -Ofast implies -funsafe-math-optimizations, which affects the global FP state for all programs: when used at link time, it may include libraries or startup files that change the default FPU control word or other similar optimizations. --- xz-bootstrap.spec | 2 +- xz.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xz-bootstrap.spec b/xz-bootstrap.spec index 2f24e800132..16773fe46a9 100644 --- a/xz-bootstrap.spec +++ b/xz-bootstrap.spec @@ -5,7 +5,7 @@ Source0: http://tukaani.org/xz/xz-%{realversion}.tar.gz %setup -n xz-%{realversion} %build -./configure CFLAGS='-fPIC -D_FILE_OFFSET_BITS=64 -Ofast' --prefix=%{i} --disable-static +./configure CFLAGS='-fPIC -D_FILE_OFFSET_BITS=64 -O3' --prefix=%{i} --disable-static make %{makeprocesses} %install diff --git a/xz.spec b/xz.spec index 10a2494058f..2b1094aaf51 100644 --- a/xz.spec +++ b/xz.spec @@ -7,7 +7,7 @@ BuildRequires: autotools %setup -n %{n}-%{realversion} %build -./configure CFLAGS='-fPIC -Ofast' --prefix=%{i} --disable-static --disable-nls --disable-rpath --disable-dependency-tracking --disable-doc +./configure CFLAGS='-fPIC -O3' --prefix=%{i} --disable-static --disable-nls --disable-rpath --disable-dependency-tracking --disable-doc make %{makeprocesses} %install