Package: ndiswrapper / 1.59-2

ndiswrapper-harden.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
From: Moritz Muehlenhoff <jmm@debian.org>
Subject: Please enabled hardened build flags
Bug-Debian: http://bugs.debian.org/655249

--- a/utils/Makefile
+++ b/utils/Makefile
@@ -6,7 +6,10 @@ HEADERS = $(DRIVER_DIR)/loader.h $(DRIVE
 
 CC = gcc
 HOSTCC = $(CC)
-CFLAGS = -g -Wall -I$(DRIVER_DIR)
+CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
+CFLAGS += -Wall -I$(DRIVER_DIR)
+LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
+CFLAGS += $(shell dpkg-buildflags --get CPPFLAGS)
 
 DISTFILES=Makefile ndiswrapper loadndisdriver.c ndiswrapper-buginfo