aboutsummaryrefslogtreecommitdiff
path: root/utils/hdparm/patches/010-cflags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'utils/hdparm/patches/010-cflags.patch')
-rw-r--r--utils/hdparm/patches/010-cflags.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/hdparm/patches/010-cflags.patch b/utils/hdparm/patches/010-cflags.patch
new file mode 100644
index 000000000..f8b59b87c
--- /dev/null
+++ b/utils/hdparm/patches/010-cflags.patch
@@ -0,0 +1,11 @@
+--- a/Makefile
++++ b/Makefile
+@@ -13,7 +13,7 @@ oldmandir = $(manprefix)/man
+ CC ?= gcc
+ STRIP ?= strip
+
+-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)
++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)
+
+ INSTALL = install
+ INSTALL_DATA = $(INSTALL) -m 644