From: Michael Andres Date: Mon, 24 Sep 2007 09:10:50 +0000 (+0000) Subject: Add -fstack-protector to default cflags. Abuild uses it, and without some memory X-Git-Tag: BASE-SuSE-Linux-10_3-Branch~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d09cb54436f6c003f910afd297c7dd165efd979c;p=platform%2Fupstream%2Flibzypp.git Add -fstack-protector to default cflags. Abuild uses it, and without some memory corruptions are not reproducible. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index ee0d7bd..6bfb2d2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,8 +35,8 @@ MATH( EXPR LIBZYPP_SO_FIRST "${LIBZYPP_CURRENT}-${LIBZYPP_AGE}" ) SET( PACKAGE "libzypp" ) SET( VERSION "${LIBZYPP_MAJOR}.${LIBZYPP_MINOR}.${LIBZYPP_PATCH}" ) -SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O3 -Wall -Woverloaded-virtual" ) -SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O3 -Wall" ) +SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O3 -Wall -Woverloaded-virtual -fstack-protector" ) +SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O3 -Wall -fstack-protector" ) ADD_DEFINITIONS( -D_FILE_OFFSET_BITS=64 ) ADD_DEFINITIONS( -DVERSION=\\\"${VERSION}\\\" ) SET( LIBZYPP_VERSION_INFO "${LIBZYPP_SO_FIRST}.${LIBZYPP_AGE}.${LIBZYPP_PATCH}" )