File: 01_fortify.patch

package info (click to toggle)
libjavascript-quickjs-perl 0.21-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,180 kB
  • sloc: ansic: 72,822; javascript: 7,743; perl: 1,065; makefile: 353; sh: 108
file content (16 lines) | stat: -rw-r--r-- 580 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
From: Roland Rosenfeld <roland@debian.org>
Date: Wed, 14 Feb 2024 21:22:54 +0100
Forwarded: not-needed
Subject: Tunnel the CPPFLAGS for fortify to quickjs Makefile

--- a/Makefile.PL
+++ b/Makefile.PL
@@ -291,7 +291,7 @@ sub make_libquickjs_makefile {
     # We need position-independent code so we can compile QuickJS into a
     # shared library.
     #
-    substr($make, 0, 0, "CFLAGS+=-fPIC\n");
+    substr($make, 0, 0, "CFLAGS+=-fPIC $ENV{CPPFLAGS}\n");
 
     # In systems old enough to need -lrt (e.g., CloudLinux 6),
     # assume we need these other omissions as well: