Change optimization level from upstream

epel9
sagitter 6 years ago
parent 65ce9f9930
commit 7e27542603

@ -65,12 +65,15 @@ do
[ "$(file $file | awk '{print $2}')" = ELF ] && rm $file || :
done
# Change optimization level
sed -i.bak '/NOOPTS/d' make.inc.in
sed -e 's|-O0|-O2|g' -i SRC/CMakeLists.txt
%build
mkdir -p build; cd build
# Do not use bundled CBLAS code
%cmake3 -Denable_blaslib:BOOL=OFF ..
%cmake3 -Denable_blaslib:BOOL=OFF -DCMAKE_BUILD_TYPE:STRING=Release ..
%make_build
%install

Loading…
Cancel
Save