1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
From: Hilko Bengen <bengen@debian.org>
Date: Tue, 8 Dec 2020 22:42:28 +0100
Subject: Add hardening flag
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: capstone/Makefile
===================================================================
--- capstone.orig/Makefile
+++ capstone/Makefile
@@ -58,7 +58,7 @@ ifneq ($(OS),OS/390)
CFLAGS += -fPIC
endif
else
-CFLAGS += -fPIC -Wall -Wwrite-strings -Wmissing-prototypes -Iinclude
+CFLAGS += -fPIC -Wall -Wwrite-strings -Wmissing-prototypes -Iinclude -D_FORTIFY_SOURCE=2
endif
ifeq ($(CAPSTONE_USE_SYS_DYN_MEM),yes)
|