aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2020-06-13 09:39:54 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2020-06-13 09:39:54 +0200
commitc0ad029a08c5ebe00ace08955eb83944071aaf11 (patch)
tree4143e72a304db48ac5cbd0c5d59789e6111dad81
parent1143dfb9cde844325f0ffdb3796ba187c2242376 (diff)
downloadlibnitrokey-size-optimization.tar.gz
libnitrokey-size-optimization.tar.bz2
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 82cd251..8b01771 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,6 +29,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
include(GNUInstallDirs)
+# Add -O0 to remove optimizations when using gcc
set(ADD_FLAGS "-Os -s -fno-rtti")
IF(CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")