--- acpid-2.0.7/Makefile.alt 2010-11-05 20:42:23.000000000 +0300 +++ acpid-2.0.7/Makefile 2010-12-05 19:08:09.000000000 +0300 @@ -31,8 +31,9 @@ MAN8GZ = $(MAN8:.8=.8.gz) DOCS = COPYING Changelog README TESTPLAN TODO -CFLAGS = -W -Wall -Werror -Wundef -Wshadow -D_GNU_SOURCE $(OPT) \ - -fno-strict-aliasing -g $(DEFS) +CFLAGS = -W -Wall -Wundef -Wshadow -D_GNU_SOURCE $(OPT) \ + -fno-strict-aliasing -g $(DEFS) $(RPM_OPT_FLAGS) -fPIE +LDFLAGS = -pie -Wl,-z,relro DEFS = -DVERSION="\"$(VERSION)\"" all: $(PROGS)