From ff0cdaa9599c0e500ee0bedcb321aa1b4c6d62ab Mon Sep 17 00:00:00 2001 From: "jc815.lee" Date: Fri, 16 Aug 2013 14:06:59 +0900 Subject: [PATCH] Apply reduceing binary size of package [model] [binary_type] [customer] [issue#] [problem] [cause] [solution] [team] F/W [request] i.palachev@samsung.com - Tizen Toolchain Team [horizontal_expansion] Change-Id: I4f6142289ce789c40d8fb8cc4ccdd718e2c6b49d Signed-off-by: jc815.lee --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 323e67d..9e8a8bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,10 @@ SET(TARGET_VCORE_LIB "cert-svc-vcore") SET(TARGET_SIGN_TOOL "dpkg-pki-sig") # compiler options +SET(GC_SECTIONS_FLAGS "-fdata-sections -ffunction-sections -Wl,--gc-sections") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GC_SECTIONS_FLAGS}") +SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GC_SECTIONS_FLAGS}") + SET(CMAKE_C_FLAGS_RELEASE "-fvisibility=hidden -Wall -O2") SET(CMAKE_CXX_FLAGS_RELEASE "-std=c++0x -Wall -O2") -- 2.7.4