File: 0010_add_missing_hardening_flags.diff

package info (click to toggle)
mupdf 1.25.1%2Bds1-6
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 21,620 kB
  • sloc: ansic: 270,929; python: 20,709; java: 6,916; javascript: 1,865; makefile: 1,130; xml: 550; sh: 430; cpp: 325; cs: 313; awk: 10; sed: 7; lisp: 3
file content (24 lines) | stat: -rw-r--r-- 1,106 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
24
Description: Add missing hardening flags
Author: Daniel Echeverri <epsilon@debian.org>
Forwarded: not-needed
Last-Update: 2024-10-20
--- a/scripts/wrap/__main__.py
+++ b/scripts/wrap/__main__.py
@@ -1717,6 +1717,8 @@
                                     -I {include2}
                                     {cpp_files_text}
                                     {link_l_flags(libmupdf)}
+                                    {os.environ.get("CXXFLAGS") or ""}
+                                    {os.environ.get("CPPFLAGS") or ""}
                                 ''')
                                 )
                         command_was_run = jlib.build(
@@ -2212,6 +2214,8 @@
                                     -DSWIG_PYTHON_SILENT_MEMLEAK
                                     {flags_link}
                                     {link_l_flags( sos)}
+                                    {os.environ.get("CXXFLAGS") or ""}
+                                    {os.environ.get("CPPFLAGS") or ""}
                                 ''')
                                 )
                         infiles = [