Update of acpid-1.0.6-makefile.patch, it fix building with gcc 4.3

This commit is contained in:
Zdenek Prikryl 2008-02-14 12:04:48 +00:00
parent 2b89a318df
commit 52de11dfea
2 changed files with 10 additions and 5 deletions

View File

@ -1,12 +1,14 @@
--- acpid-1.0.6/Makefile.flags 2007-06-30 21:15:45.000000000 +0200
+++ acpid-1.0.6/Makefile 2007-08-07 10:29:18.000000000 +0200
@@ -21,7 +21,8 @@ acpi_listen_OBJS = $(acpi_listen_SRCS:.c
--- acpid-1.0.6/Makefile.makefile 2007-06-30 21:15:45.000000000 +0200
+++ acpid-1.0.6/Makefile 2008-02-13 18:05:37.000000000 +0100
@@ -21,8 +21,9 @@ acpi_listen_OBJS = $(acpi_listen_SRCS:.c
MAN8 = acpid.8 acpi_listen.8
MAN8GZ = $(MAN8:.8=.8.gz)
-CFLAGS = -Wall -Werror -g $(DEFS)
-DEFS = -DVERSION="\"$(VERSION)\""
+CFLAGS = -Wall -Werror -g $(DEFS) $(RPM_OPT_FLAGS) -fPIE
+LDFLAGS = -pie -Wl,-z,relro
DEFS = -DVERSION="\"$(VERSION)\""
+DEFS = -DVERSION="\"$(VERSION)\"" -D_GNU_SOURCE
all: $(PROGS)

View File

@ -1,7 +1,7 @@
Summary: ACPI Event Daemon
Name: acpid
Version: 1.0.6
Release: 5%{?dist}
Release: 6%{?dist}
License: GPL
Group: System Environment/Daemons
Source: http://prdownloads.sourceforge.net/acpid/acpid-%{version}.tar.gz
@ -87,6 +87,9 @@ if [ "$1" -ge "1" ]; then
fi
%changelog
* Thu Feb 14 2008 Zdenek Prikryl <zprikryl@redhat.com> - 1.0.6-6.fc9
- Update of acpid-1.0.6-makefile.patch, it fix building with gcc 4.3
* Wed Jan 23 2008 Zdenek Prikryl <zprikryl@redhat.com> - 1.0.6-5.fc9
- Fixed managing of power button (#361501)
- Fixed power script to check for KDE power manager (#419331)