Package: hdparm / 9.51+ds-1+deb9u1

makefile.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Subject: Remove hardcoded LDFLAGS, this way dh will propagate hardening
flags correctly.
Don't hardcode the number of parallel jobs "-j2"
From: Alex Mestiashvili <mailatgoogl@gmail.com>
--- hdparm.orig/Makefile
+++ hdparm/Makefile
@@ -15,7 +15,6 @@
 
 CFLAGS := -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs $(CFLAGS)
 
-LDFLAGS = -s
 #LDFLAGS = -s -static
 INSTALL = install
 INSTALL_DATA = $(INSTALL) -m 644
@@ -25,7 +24,7 @@
 OBJS = hdparm.o identify.o sgio.o sysfs.o geom.o fallocate.o fibmap.o fwdownload.o dvdspeed.o wdidle3.o
 
 all:
-	$(MAKE) -j4 hdparm
+	make hdparm
 
 hdparm: hdparm.h sgio.h $(OBJS)
 	$(CC) $(LDFLAGS) -o hdparm $(OBJS)