Permalink
Browse files

Build with -fvisibility-inlines-hidden

This reduces the exported symbol table in 2k number of entries
and code size around half a megabyte
  • Loading branch information...
1 parent 5493851 commit 7b9f1b87d87523c2b75a8eee61100927c18c93f0 @crrodriguez committed Jan 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 CMakeLists.txt
View
2 CMakeLists.txt
@@ -25,7 +25,7 @@ include(CheckCXXCompilerFlag)
CHECK_C_COMPILER_FLAG("-Werror=format-security" CC_FORMAT_SECURITY)
CHECK_CXX_COMPILER_FLAG("-Werror=format-security" CXX_FORMAT_SECURITY)
-SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-strict-aliasing -fPIC -g -Wall -Woverloaded-virtual -Wnon-virtual-dtor -Wl,-as-needed -std=c++0x" )
+SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility-inlines-hidden -fno-strict-aliasing -fPIC -g -Wall -Woverloaded-virtual -Wnon-virtual-dtor -Wl,-as-needed -std=c++0x" )
SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-strict-aliasing -fPIC -g -Wall -Wl,-as-needed" )
set( CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -O3" )

1 comment on commit 7b9f1b8

@mlandres

I'll give it a try.

Please sign in to comment.