File: Add-hardening-flag.patch

package info (click to toggle)
capstone 5.0.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 58,212 kB
  • sloc: ansic: 96,103; cpp: 67,489; cs: 29,510; python: 25,829; pascal: 24,412; java: 15,582; ml: 14,473; makefile: 1,274; sh: 479; ruby: 386
file content (21 lines) | stat: -rw-r--r-- 594 bytes parent folder | download
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)