summarylogtreecommitdiffstats
path: root/ldflags-adjustments.patch
blob: 130436dbe89c28dcd23ed7a6c7e25896997b3c75 (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 @@ include config.mak
 
 vpath %.cpp $(SRCDIR)
 
+LDFLAGS := -z relro -z now -z noexecstack $(LDFLAGS)
+
 OBJS    = $(SRCS:%.cpp=%.cpp.o)
 OBJCUS  = $(SRCCUS:%.cu=%.o)
 OBJPYWS = $(PYWS:%.pyw=%.o)