From 7e27542603948c3828860904ba126b66dbfc3bef Mon Sep 17 00:00:00 2001 From: sagitter Date: Fri, 14 Sep 2018 13:34:28 +0200 Subject: [PATCH] Change optimization level from upstream --- SuperLU.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SuperLU.spec b/SuperLU.spec index 71e3c22..3189808 100644 --- a/SuperLU.spec +++ b/SuperLU.spec @@ -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