Disable rtti option
authorRyuan Choi <ryuan.choi@samsung.com>
Thu, 12 Sep 2013 01:37:16 +0000 (10:37 +0900)
committerRyuan Choi <ryuan.choi@samsung.com>
Thu, 12 Sep 2013 01:46:20 +0000 (10:46 +0900)
[Title] Disable rtti optioin
[Issue#] N/A
[Problem] rtti is not needed.
[Cause] N/A
[Solution] N/A

Change-Id: I83faf95e5901c83aa798d0a69607ef0feab46a18

Source/cmake/OptionsTizen.cmake

index 8e95836..f0d5aeb 100644 (file)
@@ -192,7 +192,7 @@ SET(CPACK_SOURCE_GENERATOR TBZ2)
 # Optimize binary size for release builds by removing dead sections on unix/gcc
 if (CMAKE_COMPILER_IS_GNUCC AND UNIX AND NOT APPLE)
     set(CMAKE_C_FLAGS "-ffunction-sections -fdata-sections ${CMAKE_C_FLAGS}")
-    set(CMAKE_CXX_FLAGS "-ffunction-sections -fdata-sections ${CMAKE_CXX_FLAGS}")
+    set(CMAKE_CXX_FLAGS "-ffunction-sections -fdata-sections -fno-rtti ${CMAKE_CXX_FLAGS}")
     set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--gc-sections ${CMAKE_SHARED_LINKER_FLAGS}")
 endif ()