File: buildflags.patch

package info (click to toggle)
libhipi-perl 0.94-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,048 kB
  • sloc: perl: 471,918; ansic: 22; makefile: 10
file content (25 lines) | stat: -rw-r--r-- 811 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
25
Description: pass Debian (hardening) buildflags
Origin: vendor
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2023-11-09

--- a/inc/Module/Build/HiPi.pm
+++ b/inc/Module/Build/HiPi.pm
@@ -136,6 +136,8 @@
                 $ofile,
                 $Config{ccflags},
                 $Config{optimize},
+                $ENV{CFLAGS},
+                $ENV{CPPFLAGS},
                 '-DVERSION=\"' . $mod->{version} . '\" -DXS_VERSION=\"' . $mod->{version} . '\"',
                 $Config{cccdlflags},
                 '-Imylib/include',
@@ -156,6 +158,7 @@
                 $Config{ld},
                 qq(-L$libdirs),
                 $Config{lddlflags},
+                $ENV{LDFLAGS},
                 $ofile,
                 '-o ' . $dllfile,
                 $mod->{libs}