acpid/acpid-1.0.4-pie.patch
2006-10-10 04:34:30 +00:00

14 lines
451 B
Diff

diff -ur acpid-1.0.4.orig/Makefile acpid-1.0.4/Makefile
--- acpid-1.0.4.orig/Makefile 2006-10-08 09:48:31.000000000 -0400
+++ acpid-1.0.4/Makefile 2006-10-08 09:55:47.000000000 -0400
@@ -21,7 +21,8 @@
MAN8 = acpid.8 acpi_listen.8
MAN8GZ = $(MAN8:.8=.8.gz)
-CFLAGS = -Wall -Werror -g $(DEFS) $(RPM_OPT_FLAGS)
+CFLAGS = -Wall -Werror -g $(DEFS) $(RPM_OPT_FLAGS) -fPIE
+LDFLAGS = -pie -Wl,-z,relro
DEFS = -DVERSION="\"$(VERSION)\""
all: $(PROGS)