Package: libfuse-perl / 0.16.1+20180422git6becd92d7fce3fc411d7c-4

0004-Pass-hardening-flags.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From ebd99620cbe9bb9c0daa67f30652a0bfac93f992 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bastien=20Roucari=C3=A8s?= <rouca@debian.org>
Date: Sun, 1 Jul 2018 16:37:11 +0200
Subject: Pass hardening flags

Forwarded: yes, mail
---
 Makefile.PL | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.PL b/Makefile.PL
index f74eeb0..b91d9e0 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -192,8 +192,8 @@ WriteMakefile(
         })
     ),
     'LIBS'          => $libs, # e.g., '-lm'
-    'DEFINE'        => $def, # e.g., '-DHAVE_SOMETHING'
-    'OPTIMIZE'      => '-g -ggdb',
+    'DEFINE'        => "$ENV{CPPFLAGS} $def", # e.g., '-DHAVE_SOMETHING'
+    'OPTIMIZE'      => "$ENV{OPTIMIZE}",
     # Insert -I. if you add *.h files later:
     'INC'           => $inc, # e.g., '-I/usr/include/other'
     # Un-comment this if you add C files to link with later: