summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c7e08dd)
raw | patch | inline | side by side (parent: c7e08dd)
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Sat, 1 Oct 2016 15:24:28 +0000 (18:24 +0300) | ||
committer | Tomi 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>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
CMakeLists.txt | patch | blob | history |
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 630685287dab154eaf1879762588fa3bd102200e..d9bc30c8c5990b6c93c118628d5cb71ee4e6f11d 100644 (file)
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
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