]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/external-libkmsxx.git/commitdiff
remove -rdynamic gcc flag
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Sat, 1 Oct 2016 15:24:28 +0000 (18:24 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Sat, 1 Oct 2016 15:24:28 +0000 (18:24 +0300)
This reduces the exe sizes.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
CMakeLists.txt

index 630685287dab154eaf1879762588fa3bd102200e..d9bc30c8c5990b6c93c118628d5cb71ee4e6f11d 100644 (file)
@@ -32,6 +32,10 @@ if (CMAKE_COMPILER_IS_GNUCC)
     endif()
 endif()
 
+# HACK: cmake always adds "-rdynamic", this removes it
+SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
+SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
+
 set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
 
 # static link libc