diff --git a/hdparm-5.9-nostrip.patch b/hdparm-5.9-nostrip.patch new file mode 100644 index 0000000..21580a3 --- /dev/null +++ b/hdparm-5.9-nostrip.patch @@ -0,0 +1,11 @@ +--- hdparm-5.9/Makefile.rh1 2005-05-10 10:35:32.000000000 +0200 ++++ hdparm-5.9/Makefile 2005-05-10 10:35:35.000000000 +0200 +@@ -16,7 +16,7 @@ + CFLAGS := -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -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 = + INSTALL = install + INSTALL_DATA = $(INSTALL) -m 644 + INSTALL_PROGRAM = $(INSTALL) diff --git a/hdparm.spec b/hdparm.spec index f7239d2..8dfec63 100644 --- a/hdparm.spec +++ b/hdparm.spec @@ -7,6 +7,7 @@ Group: Applications/System Source: http://www.ibiblio.org/pub/Linux/system/hardware/hdparm-%{version}.tar.gz Source1: hdparm-sysconfig Patch0: hdparm-5.8-help.patch +Patch1: hdparm-5.9-nostrip.patch Buildroot: %{_tmppath}/%{name}-%{version}-root ExcludeArch: s390 s390x @@ -18,6 +19,7 @@ performance and to spin down hard drives for power conservation. %prep %setup -q %patch0 -p1 +%patch1 -p1 %build perl -pi -e "s/-O2/$RPM_OPT_FLAGS/g" Makefile