Change optimization level from upstream

This commit is contained in:
sagitter 2018-09-14 13:34:28 +02:00
parent 65ce9f9930
commit 7e27542603

View File

@ -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