Build with -fvisibility-inlines-hidden
authorCristian Rodríguez <crrodriguez@opensuse.org>
Tue, 13 Mar 2012 16:33:56 +0000 (13:33 -0300)
committerCristian Rodríguez <crrodriguez@opensuse.org>
Tue, 13 Mar 2012 16:33:56 +0000 (13:33 -0300)
This shirks the executable size on a few hundreds of kilobytes.

CMakeLists.txt

index 88a145a..c9afdd0 100644 (file)
@@ -16,7 +16,7 @@ SET( VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}" )
 ADD_DEFINITIONS( -D_FILE_OFFSET_BITS=64 )
 ADD_DEFINITIONS( -DVERSION="${VERSION}" )
 
-SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O2 -Wall -Woverloaded-virtual -Wnon-virtual-dtor -fstack-protector -std=c++0x" )
+SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O2 -Wall -Woverloaded-virtual -Wnon-virtual-dtor -fstack-protector -std=c++0x -fvisibility-inlines-hidden" )
 SET( CMAKE_C_FLAGS   "${CMAKE_C_FLAGS}   -g -O2 -Wall -fstack-protector" )
 
 GENERATE_PACKAGING(${PACKAGE} ${VERSION})