Change optimization level from upstream
This commit is contained in:
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…
Reference in New Issue
Block a user