[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
# (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
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}