From: Krzysztof Jackiewicz Date: Wed, 18 Sep 2013 10:12:13 +0000 (+0200) Subject: Security-server symbols hidden by default X-Git-Tag: submit/tizen/20140307.131547~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1cfb694797356ec29496989aeab427637c74d31e;p=platform%2Fcore%2Fsecurity%2Fsecurity-server.git Security-server symbols hidden by default [Issue#] N/A [Feature/Bug] N/A [Problem] Security-server unnecessarily exports its symbols [Cause] N/A [Solution] Symbols hidden by default [Verification] Successful compilation. Tests should pass as before. Security-server binary size should be ~50KB smaller. Change-Id: Ifc82fc7dcae75a7619be0a416296d3835652aeef --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 84defdd..36b2c59 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,10 +43,6 @@ SET(CMAKE_CXX_FLAGS_CCOV "-g -std=c++0x -O2 --coverage") # (BJ: our ARM too?) ADD_DEFINITIONS("-fPIC") -# Set the default ELF image symbol visibility to hidden - all symbols will be -# marked with this unless overridden within the code. -#ADD_DEFINITIONS("-fvisibility=hidden") - # Set compiler warning flags ADD_DEFINITIONS("-Werror") # Make all warnings into errors. ADD_DEFINITIONS("-Wall") # Generate all warnings diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d7f7eef..d8e0c28 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -32,7 +32,7 @@ SET(SECURITY_SERVER_SOURCES SET_SOURCE_FILES_PROPERTIES( ${SECURITY_SERVER_SOURCES} PROPERTIES - COMPILE_FLAGS "-D_GNU_SOURCE") + COMPILE_FLAGS "-D_GNU_SOURCE -fvisibility=hidden") INCLUDE_DIRECTORIES(SYSTEM ${SECURITY_SERVER_DEP_INCLUDE_DIRS}