Build with SSP and PIE by default
This commit is contained in:
parent
e4807fb3cd
commit
1a7ca5af5c
|
@ -1,8 +1,8 @@
|
||||||
targets=libcpp,cpp
|
targets=libcpp,cpp
|
||||||
cppflags_force=-I ../include
|
cppflags_force=-I ../include
|
||||||
cppflags=
|
cppflags=
|
||||||
cflags_force=-W `pkg-config --cflags libSystem`
|
cflags_force=`pkg-config --cflags libSystem`
|
||||||
cflags=-Wall -g -O2 -pedantic
|
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
||||||
ldflags_force=`pkg-config --libs libSystem`
|
ldflags_force=`pkg-config --libs libSystem`
|
||||||
ldflags=
|
ldflags=
|
||||||
dist=Makefile,common.h,parser.h
|
dist=Makefile,common.h,parser.h
|
||||||
|
@ -26,6 +26,7 @@ depends=common.h,../include/CPP.h
|
||||||
type=binary
|
type=binary
|
||||||
sources=main.c
|
sources=main.c
|
||||||
depends=$(OBJDIR)libcpp.so
|
depends=$(OBJDIR)libcpp.so
|
||||||
|
cflags=-fPIE
|
||||||
ldflags=-L$(OBJDIR). -L$(LIBDIR) -Wl,-rpath,$(LIBDIR) -lcpp
|
ldflags=-L$(OBJDIR). -L$(LIBDIR) -Wl,-rpath,$(LIBDIR) -lcpp
|
||||||
install=$(BINDIR)
|
install=$(BINDIR)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user