Build cpp(1) as PIE and with RELRO by default

This commit is contained in:
Pierre Pronchery 2016-03-06 13:37:19 +01:00
parent 42ff4b9310
commit 414e1bc8df

View File

@ -27,7 +27,7 @@ type=binary
sources=main.c
depends=$(OBJDIR)libcpp.so
cflags=-fPIE
ldflags=-L$(OBJDIR). -L$(LIBDIR) -Wl,-rpath,$(LIBDIR) -lcpp
ldflags=-L$(OBJDIR). -L$(LIBDIR) -Wl,-rpath,$(LIBDIR) -lcpp -pie -Wl,-z,relro -Wl,-z,now
install=$(BINDIR)
[main.c]