From 0602cb8d7c18cce1099d500bd49313bb876749b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= Date: Tue, 10 May 2022 16:01:38 +0300 Subject: [PATCH 1/1] Use -O1 on SEALCurses as a workaround A problem with optimizations on Linux? --- build-tui.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build-tui.sh b/build-tui.sh index eba0345a..2eeebe7b 100755 --- a/build-tui.sh +++ b/build-tui.sh @@ -15,7 +15,7 @@ # You can customize the install directory prefix here and build type here: INSTALL_PREFIX="/usr/local" -CMAKE_BUILD_TYPE="Debug" +CMAKE_BUILD_TYPE="Release" #----------------------------------------------------------------------------- @@ -47,7 +47,9 @@ cd .. mkdir build-sealcurses cd build-sealcurses -cmake ../../lib/sealcurses -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DENABLE_SHARED=NO \ +cmake ../../lib/sealcurses -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \ + -DCMAKE_C_FLAGS_RELEASE=-O1 \ + -DENABLE_SHARED=NO \ -Dthe_Foundation_DIR="${BUILD_DIR}/lib/cmake/the_Foundation" \ -DCMAKE_INSTALL_PREFIX="${BUILD_DIR}" $* cmake --build . || exit 1 -- 2.34.1