Browse Source

Merge pull request #8010 from neheb/hdp

hdparm: Fix LDFLAGS
lilik-openwrt-22.03
Hannu Nyman 6 years ago
committed by GitHub
parent
commit
8f14b6deac
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 3 deletions
  1. +0
    -3
      utils/hdparm/Makefile
  2. +13
    -0
      utils/hdparm/patches/010-ldflags.patch

+ 0
- 3
utils/hdparm/Makefile View File

@ -10,7 +10,6 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=hdparm
PKG_VERSION:=9.58
PKG_RELEASE:=1
PKG_USE_MIPS16:=0
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
@ -21,8 +20,6 @@ PKG_LICENSE:=BSD-Style Open Source License
include $(INCLUDE_DIR)/package.mk
TARGET_CFLAGS+=-D_GNU_SOURCE
define Package/hdparm
SECTION:=utils
CATEGORY:=Utilities


+ 13
- 0
utils/hdparm/patches/010-ldflags.patch View File

@ -0,0 +1,13 @@
--- a/Makefile
+++ b/Makefile
@@ -13,9 +13,8 @@ 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)
-LDFLAGS = -s
#LDFLAGS = -s -static
INSTALL = install
INSTALL_DATA = $(INSTALL) -m 644

Loading…
Cancel
Save