52da7a9
diff -up acpid-2.0.2/Makefile.makefile acpid-2.0.2/Makefile
52da7a9
diff -up acpid-2.0.2/Makefile.makefile acpid-2.0.2/Makefile
52da7a9
diff -up acpid-2.0.2/Makefile.makefile acpid-2.0.2/Makefile
52da7a9
diff -up acpid-2.0.2/Makefile.makefile acpid-2.0.2/Makefile
52da7a9
diff -up acpid-2.0.2/Makefile.makefile acpid-2.0.2/Makefile
52da7a9
--- acpid-2.0.2/Makefile.makefile	2010-01-27 00:36:23.000000000 +0100
52da7a9
+++ acpid-2.0.2/Makefile	2010-02-25 16:01:39.641024017 +0100
52da7a9
@@ -31,8 +31,9 @@ MAN8GZ = $(MAN8:.8=.8.gz)
52da7a9
 
52da7a9
 DOCS = COPYING Changelog README TESTPLAN TODO 
52da7a9
 
52da7a9
-CFLAGS = -W -Wall -Werror -Wundef -Wshadow -D_GNU_SOURCE $(OPT) \
52da7a9
-	-fno-strict-aliasing -g $(DEFS)
52da7a9
+CFLAGS = -W -Wall -Werror -Wundef -Wshadow -D_GNU_SOURCE -O2 $(OPT) \
52da7a9
+	-fno-strict-aliasing -g $(DEFS) $(RPM_OPT_FLAGS) -fPIE
52da7a9
+LDFLAGS = -pie -Wl,-z,relro
52da7a9
 DEFS = -DVERSION="\"$(VERSION)\""
52da7a9
 
52da7a9
 all: $(PROGS)
52da7a9
@@ -46,8 +47,8 @@ man: $(MAN8)
52da7a9
 
52da7a9
 install_docs:
52da7a9
 	mkdir -p $(DESTDIR)/$(DOCDIR)
52da7a9
-	for a in $(DOCS); do install -m 0644 $$a $(DESTDIR)/$(DOCDIR) ; done
52da7a9
-	cp -a samples $(DESTDIR)/$(DOCDIR)
52da7a9
+	#for a in $(DOCS); do install -m 0644 $$a $(DESTDIR)/$(DOCDIR) ; done
52da7a9
+	#cp -a samples $(DESTDIR)/$(DOCDIR)
52da7a9
 
52da7a9
 install: $(PROGS) man install_docs
52da7a9
 	mkdir -p $(DESTDIR)/$(SBINDIR)