diff --git a/scram-tools.file/tools/gcc/ofast-flag.xml b/scram-tools.file/tools/gcc/ofast-flag.xml
index f32a962f353..9ada2fe263c 100644
--- a/scram-tools.file/tools/gcc/ofast-flag.xml
+++ b/scram-tools.file/tools/gcc/ofast-flag.xml
@@ -1,12 +1,24 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
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