From c20959a9afddd8185fa510e83e5a413bb03bd49d Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 28 Jun 2015 17:10:42 +0200 Subject: [PATCH] Compile with -pedantic and -fstack-protector by default --- src/project.conf | 2 +- src/python/project.conf | 2 +- tests/project.conf | 2 +- tools/project.conf | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/project.conf b/src/project.conf index 623af02..d99a904 100644 --- a/src/project.conf +++ b/src/project.conf @@ -2,7 +2,7 @@ targets=libSystem cppflags_force=-I ../include cppflags= cflags_force=-W -fPIC -cflags=-g -Wall -O2 -pedantic +cflags=-g -Wall -O2 -pedantic -fstack-protector #XXX get rid of this dependency ldflags_force=-lsocket dist=Makefile,token.h,python/project.conf,python/Makefile,python/libSystem.c,python/libSystem.py diff --git a/src/python/project.conf b/src/python/project.conf index e371aa1..986e6d7 100644 --- a/src/python/project.conf +++ b/src/python/project.conf @@ -1,7 +1,7 @@ targets=_libSystem cppflags_force=-I ../../include cflags_force=-W `pkg-config --cflags python-2.7 libSystem` -fPIC -cflags=-Wall -g -O2 +cflags=-Wall -g -O2 -pedantic -fstack-protector ldflags_force=`pkg-config --libs python-2.7 libSystem` ldflags=-L.. -L$(LIBDIR) -Wl,-rpath,$(LIBDIR) dist=Makefile,libSystem.py diff --git a/tests/project.conf b/tests/project.conf index 12df291..a7259a3 100644 --- a/tests/project.conf +++ b/tests/project.conf @@ -1,7 +1,7 @@ targets=array,config,includes,pylint.log,string,variable,tests.log cppflags_force=-I ../include cflags_force=-W -cflags=-Wall -g -O2 +cflags=-Wall -g -O2 -pedantic -fstack-protector ldflags_force=-L../src -L$(OBJDIR)../src -Wl,-rpath,$(OBJDIR)../src -lSystem ldflags=-L$(PREFIX)/lib -Wl,-rpath,"$(PWD)/../src" dist=COPYING,Makefile,config.conf,config-noeol.conf,pylint.sh,python.sh,tests.sh diff --git a/tools/project.conf b/tools/project.conf index 26ce193..462a73a 100644 --- a/tools/project.conf +++ b/tools/project.conf @@ -2,7 +2,7 @@ targets=configctl cppflags_force=-I ../include cppflags= cflags_force=-W -cflags=-Wall -g -O2 -pedantic +cflags=-Wall -g -O2 -pedantic -fstack-protector ldflags_force=-L../src -L$(OBJDIR). -Wl,-rpath,$(PREFIX)/lib -lSystem dist=COPYING,Makefile