From e6be459efc61633a4829cb944aacbbb92e95c1f2 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 11 Jul 2015 15:24:10 +0200 Subject: [PATCH] Build with -fstack-protector --- src/engines/project.conf | 2 +- src/project.conf | 2 +- src/python/project.conf | 2 +- tools/project.conf | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engines/project.conf b/src/engines/project.conf index 9a10bb1..0a61768 100644 --- a/src/engines/project.conf +++ b/src/engines/project.conf @@ -1,7 +1,7 @@ targets=pdo,pgsql,sqlite2,sqlite3,template cppflags_force=-I ../../include cflags_force=-W -fPIC -cflags=-Wall -g -O2 -pedantic +cflags=-Wall -g -O2 -pedantic -fstack-protector dist=Makefile [pdo] diff --git a/src/project.conf b/src/project.conf index a2c93d8..ca217af 100644 --- a/src/project.conf +++ b/src/project.conf @@ -2,7 +2,7 @@ subdirs=engines targets=libDatabase cppflags_force=-I ../include cflags_force=-W -fPIC `pkg-config --cflags libSystem` -cflags=-Wall -g -O2 -pedantic +cflags=-Wall -g -O2 -pedantic -fstack-protector ldflags=`pkg-config --libs libSystem` dist=Makefile,python/project.conf,python/Makefile,python/libDatabase.c,python/libDatabase.py diff --git a/src/python/project.conf b/src/python/project.conf index 7f15bd0..568c650 100644 --- a/src/python/project.conf +++ b/src/python/project.conf @@ -1,6 +1,6 @@ targets=_libDatabase cflags_force=-W `pkg-config --cflags python-2.7 libDatabase` -fPIC -cflags=-Wall -g -O2 +cflags=-Wall -g -O2 -pedantic -fstack-protector ldflags_force=`pkg-config --libs python-2.7 libDatabase` ldflags=-L.. -L$(LIBDIR) -Wl,-rpath,$(LIBDIR) dist=Makefile,libDatabase.py diff --git a/tools/project.conf b/tools/project.conf index 745acb1..90626c0 100644 --- a/tools/project.conf +++ b/tools/project.conf @@ -1,7 +1,7 @@ targets=client cppflags_force=-I ../include cflags_force=-W `pkg-config --cflags libSystem` -cflags=-Wall -g -O2 +cflags=-Wall -g -O2 -pedantic -fstack-protector ldflags_force=`pkg-config --libs libSystem` -L ../src -Wl,-rpath,../src -lDatabase dist=Makefile