summarylogtreecommitdiffstats
path: root/ldflags-adjustments.patch
blob: da87d072ba2bc4fb936b95632f03f7ba7cb7bf20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/makefile b/makefile
index 57fa226..1e7b584 100644
--- a/makefile
+++ b/makefile
@@ -2,6 +2,8 @@

 vpath %.cpp $(SRCDIR)

+LDFLAGS := -z relro -z now -z noexecstack $(LDFLAGS)
+
 OBJS  = $(SRCS:%.cpp=%.cpp.o)
 OBJCS  = $(SRCCS:%.c=%.c.o)
 OBJASMS = $(ASMS:%.asm=%.o)