The change reduces number of exported symbols and leads to binary size reduction.
Change-Id: I2ea64338baebd63e0ac9342a3a3dbc6f913a0a7d
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
SET(EXTRA_CXXFLAGS "${EXTRA_CXXFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXXFLAGS} -fpie -Wall -std=c++11 -fpermissive")
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXXFLAGS} -fpie -Wall -std=c++11 -fpermissive -flto -fvisibility=hidden")
#Set executable
ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS})