Skip to content

Commit 1a7ca5a

Browse files
committed
Build with SSP and PIE by default
1 parent e4807fb commit 1a7ca5a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/project.conf

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
targets=libcpp,cpp
22
cppflags_force=-I ../include
33
cppflags=
4-
cflags_force=-W `pkg-config --cflags libSystem`
5-
cflags=-Wall -g -O2 -pedantic
4+
cflags_force=`pkg-config --cflags libSystem`
5+
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
66
ldflags_force=`pkg-config --libs libSystem`
77
ldflags=
88
dist=Makefile,common.h,parser.h
@@ -26,6 +26,7 @@ depends=common.h,../include/CPP.h
2626
type=binary
2727
sources=main.c
2828
depends=$(OBJDIR)libcpp.so
29+
cflags=-fPIE
2930
ldflags=-L$(OBJDIR). -L$(LIBDIR) -Wl,-rpath,$(LIBDIR) -lcpp
3031
install=$(BINDIR)
3132

0 commit comments

Comments
 (0)