File: Add-more-flags-to-improve-GCC-hardening.patch

package info (click to toggle)
hashrat 1.25%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,900 kB
  • sloc: ansic: 32,338; sh: 400; makefile: 337
file content (20 lines) | stat: -rw-r--r-- 495 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
Description: Add more flags to improve GCC hardening
Forwarded: not-needed
Author: Giovani Augusto Ferreira <giovani@debian.org>
Last-Update: 2025-02-26
---
 Makefile.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index c698652..f634738 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,5 +1,6 @@
 CC = @CC@
-CFLAGS = @CFLAGS@
+CFLAGS = -fPIE @CFLAGS@
+LDFLAGS = -pie @LDFLAGS@
 LIBS = @STATIC_LIBS@ @LIBS@ 
 INSTALL=@INSTALL@
 prefix=@prefix@