]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/acpid/patches/acpid-2.0.2-makefile.patch
0ba9e7960a5cd301a8e6fd122a1b9819d0181778
[people/ms/ipfire-3.x.git] / pkgs / acpid / patches / acpid-2.0.2-makefile.patch
1 diff -up acpid-2.0.2/Makefile.makefile acpid-2.0.2/Makefile
2 diff -up acpid-2.0.2/Makefile.makefile acpid-2.0.2/Makefile
3 diff -up acpid-2.0.2/Makefile.makefile acpid-2.0.2/Makefile
4 diff -up acpid-2.0.2/Makefile.makefile acpid-2.0.2/Makefile
5 diff -up acpid-2.0.2/Makefile.makefile acpid-2.0.2/Makefile
6 --- acpid-2.0.2/Makefile.makefile 2010-01-27 00:36:23.000000000 +0100
7 +++ acpid-2.0.2/Makefile 2010-02-25 16:01:39.641024017 +0100
8 @@ -31,8 +31,9 @@ MAN8GZ = $(MAN8:.8=.8.gz)
9
10 DOCS = COPYING Changelog README TESTPLAN TODO
11
12 -CFLAGS = -W -Wall -Werror -Wundef -Wshadow -D_GNU_SOURCE $(OPT) \
13 - -fno-strict-aliasing -g $(DEFS)
14 +CFLAGS = -W -Wall -Werror -Wundef -Wshadow -D_GNU_SOURCE -O2 $(OPT) \
15 + -fno-strict-aliasing -g $(DEFS) $(RPM_OPT_FLAGS) -fPIE
16 +LDFLAGS = -pie -Wl,-z,relro
17 DEFS = -DVERSION="\"$(VERSION)\""
18
19 all: $(PROGS)
20 @@ -46,8 +47,8 @@ man: $(MAN8)
21
22 install_docs:
23 mkdir -p $(DESTDIR)/$(DOCDIR)
24 - for a in $(DOCS); do install -m 0644 $$a $(DESTDIR)/$(DOCDIR) ; done
25 - cp -a samples $(DESTDIR)/$(DOCDIR)
26 + #for a in $(DOCS); do install -m 0644 $$a $(DESTDIR)/$(DOCDIR) ; done
27 + #cp -a samples $(DESTDIR)/$(DOCDIR)
28
29 install: $(PROGS) man install_docs
30 mkdir -p $(DESTDIR)/$(SBINDIR)