hdparm: fix makefile
This commit is contained in:
parent
530b7bb089
commit
cb20bb3906
28
srcpkgs/hdparm/patches/makefile.patch
Normal file
28
srcpkgs/hdparm/patches/makefile.patch
Normal file
|
@ -0,0 +1,28 @@
|
|||
Drop hardcoded -s flag from LDFLAGS
|
||||
Drop hardcoded -j4 flag
|
||||
Use CFLAGS when linking
|
||||
|
||||
--- Makefile.orig 2016-12-29 16:15:41.000000000 +0100
|
||||
+++ Makefile 2017-01-25 19:54:51.449547415 +0100
|
||||
@@ -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
|
||||
@@ -24,11 +23,10 @@
|
||||
|
||||
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
|
||||
+all: hdparm
|
||||
|
||||
hdparm: hdparm.h sgio.h $(OBJS)
|
||||
- $(CC) $(LDFLAGS) -o hdparm $(OBJS)
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) -o hdparm $(OBJS)
|
||||
$(STRIP) hdparm
|
||||
|
||||
hdparm.o: hdparm.h sgio.h
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'hdparm'
|
||||
pkgname=hdparm
|
||||
version=9.51
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-makefile
|
||||
make_install_args="exec_prefix=/usr sbindir=/usr/bin"
|
||||
short_desc="Utility to access IDE device parameters"
|
||||
|
|
Loading…
Reference in New Issue
Block a user