Build with SSP and PIE by default

This commit is contained in:
Pierre Pronchery 2015-08-24 03:02:36 +02:00
parent e4807fb3cd
commit 1a7ca5af5c

View File

@ -1,8 +1,8 @@
targets=libcpp,cpp
cppflags_force=-I ../include
cppflags=
cflags_force=-W `pkg-config --cflags libSystem`
cflags=-Wall -g -O2 -pedantic
cflags_force=`pkg-config --cflags libSystem`
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags_force=`pkg-config --libs libSystem`
ldflags=
dist=Makefile,common.h,parser.h
@ -26,6 +26,7 @@ depends=common.h,../include/CPP.h
type=binary
sources=main.c
depends=$(OBJDIR)libcpp.so
cflags=-fPIE
ldflags=-L$(OBJDIR). -L$(LIBDIR) -Wl,-rpath,$(LIBDIR) -lcpp
install=$(BINDIR)