summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--JaulibSetup.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/JaulibSetup.cmake b/JaulibSetup.cmake
index 10b4446..12331eb 100644
--- a/JaulibSetup.cmake
+++ b/JaulibSetup.cmake
@@ -62,6 +62,7 @@ if(DEBUG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_FLAGS_SANITIZE_THREAD}")
endif(CMAKE_COMPILER_IS_GNUCC)
endif(INSTRUMENTATION)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti")
elseif(GPROF)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -g -ggdb -pg -fno-rtti")
elseif(PERF_ANALYSIS)
@@ -85,6 +86,8 @@ if(DEBUG)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -no-pie")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -no-pie")
endif(CMAKE_COMPILER_IS_GNUCC)
+ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fno-rtti")
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fno-rtti")
else()
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fno-rtti")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fno-rtti")