c++/lib

Christian Mollekopf mollekopf at kolabsys.com
Wed Mar 21 16:44:43 CET 2012


 c++/lib/CMakeLists.txt |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f258c78401941bb7bf30720e1bfb72def20d154a
Author: Christian Mollekopf <mollekopf at kolabsys.com>
Date:   Wed Mar 21 16:44:36 2012 +0100

    More checking by the compiler, enable optimization for optimization and error-checking (otherwise not all errors are detected properly).

diff --git a/c++/lib/CMakeLists.txt b/c++/lib/CMakeLists.txt
index 44caba9..d970be3 100644
--- a/c++/lib/CMakeLists.txt
+++ b/c++/lib/CMakeLists.txt
@@ -1,7 +1,7 @@
 
 SET_SOURCE_FILES_PROPERTIES(${SCHEMA_SOURCEFILES} PROPERTIES GENERATED 1)
 
-set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC " ) #always generate shared libraries with -fPIC
+set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wp,-D_FORTIFY_SOURCE=2 -O2" ) #always generate shared libraries with -fPIC, -D_FORTIFY_SOURCE=2 enables some extra checking
 
 #Library with serialization/deserialization code and kolab-containers
 add_library(kolabxml SHARED kolabformat.cpp kolabcontainers.cpp kolabnote.cpp kolabevent.cpp kolabtodo.cpp kolabjournal.cpp kolabcontact.cpp utils.cpp base64.cpp ../compiled/XMLParserWrapper.cpp ../compiled/grammar-input-stream.cxx ${SCHEMA_SOURCEFILES})





More information about the commits mailing list