From: Cristian Rodríguez Date: Tue, 13 Mar 2012 16:33:56 +0000 (-0300) Subject: Build with -fvisibility-inlines-hidden X-Git-Tag: 1.7.2~4^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=24f585d1ac8f2a5196945f4bc193e230cba39302;p=platform%2Fupstream%2Fzypper.git Build with -fvisibility-inlines-hidden This shirks the executable size on a few hundreds of kilobytes. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 88a145a..c9afdd0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})