File: 20_improve-GCC-hardening.patch

package info (click to toggle)
ocaml-libvirt 0.6.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 800 kB
  • sloc: sh: 3,306; ml: 2,567; ansic: 1,776; perl: 804; makefile: 273
file content (23 lines) | stat: -rw-r--r-- 640 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Joao Eriberto Mota Filho <eriberto@debian.org>
Date: Thu, 15 Aug 2019 14:29:56 +0200
Subject: add CPPFLAGS to improve the hardening.

Last-Update: 2016-12-18

===================================================================
---
 libvirt/Makefile.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libvirt/Makefile.in b/libvirt/Makefile.in
index 77462c7..d0bc51b 100644
--- a/libvirt/Makefile.in
+++ b/libvirt/Makefile.in
@@ -26,6 +26,7 @@ CFLAGS		= @CFLAGS@ \
 LDFLAGS		= @LDFLAGS@ \
 		   @LIBVIRT_LIBS@
 #		   -L"$(shell ocamlc -where)"
+CPPFLAGS	= @CPPFLAGS@ -D_FORTIFY_SOURCE=2
 
 OCAMLC		= @OCAMLC@
 OCAMLOPT	= @OCAMLOPT@