File: hardening.patch

package info (click to toggle)
nvidia-open-gpu-kernel-modules 555.58.02-2
  • links: PTS, VCS
  • area: contrib
  • in suites:
  • size: 89,204 kB
  • sloc: ansic: 1,149,014; cpp: 23,369; sh: 3,639; makefile: 607; python: 315
file content (13 lines) | stat: -rw-r--r-- 493 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
Description: ensure we use all hardening flags
Author: Andreas Beckmann <anbe@debian.org>

--- a/utils.mk
+++ b/utils.mk
@@ -38,6 +38,7 @@ LD                    ?= ld
 AR                    ?= ar
 # only set these warnings if CFLAGS is unset
 CFLAGS                ?= -Wall
+CFLAGS                += $(CPPFLAGS)
 # always set these -f CFLAGS
 CFLAGS                += -fno-strict-aliasing -fno-omit-frame-pointer -Wformat=2
 CC_ONLY_CFLAGS        ?= -Wstrict-prototypes -Wold-style-definition