set march as v2

This commit is contained in:
eabdullin 2024-11-22 17:15:50 +03:00
parent 3ffd606a04
commit bd9369a849

View File

@ -27,7 +27,7 @@
Name: lib%{libname} Name: lib%{libname}
Version: 0.7.29 Version: 0.7.29
Release: 7%{?dist}.alma.1 Release: 7%{?dist}.alma.100
Summary: Package dependency solver Summary: Package dependency solver
License: BSD-3-Clause License: BSD-3-Clause
@ -150,6 +150,15 @@ Python 3 version.
rm src/{md5,sha1,sha2}.{c,h} rm src/{md5,sha1,sha2}.{c,h}
%build %build
CFLAGS="$(echo $CFLAGS | sed 's/-march=x86-64-v3/-march=x86-64-v2/')"
CXXFLAGS="$(echo $CXXFLAGS | sed 's/-march=x86-64-v3/-march=x86-64-v2/')"
FFLAGS="$(echo $FFLAGS | sed 's/-march=x86-64-v3/-march=x86-64-v2/')"
FCFLAGS="$(echo $FCFLAGS | sed 's/-march=x86-64-v3/-march=x86-64-v2/')"
export CFLAGS CXXFLAGS FFLAGS FCFLAGS
%cmake
%cmake_build
%cmake -GNinja \ %cmake -GNinja \
-DFEDORA=1 \ -DFEDORA=1 \
-DENABLE_RPMDB=ON \ -DENABLE_RPMDB=ON \