aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2013-03-07 18:35:54 +0100
committerLukas Nykryn <lnykryn@redhat.com>2013-03-07 18:35:54 +0100
commit4c13a49abb8a7d8fcf58238b706ff71f1e2d83fc (patch)
tree5dd00b9f8dc439bd95b2119ef1638cf28d7d32b5
parentec49b3efa64a4e964e39dd443fc24deba47c7df3 (diff)
downloadinitscripts-4c13a49abb8a7d8fcf58238b706ff71f1e2d83fc.tar
initscripts-4c13a49abb8a7d8fcf58238b706ff71f1e2d83fc.tar.gz
initscripts-4c13a49abb8a7d8fcf58238b706ff71f1e2d83fc.tar.bz2
initscripts-4c13a49abb8a7d8fcf58238b706ff71f1e2d83fc.tar.xz
initscripts-4c13a49abb8a7d8fcf58238b706ff71f1e2d83fc.zip
compile netreport and usernetctl with full RELRO and PIE (#853178)
-rw-r--r--src/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 05b1379a..dc4bf593 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -52,7 +52,13 @@ usernetctl.o: usernetctl.c
$(CC) $(CFLAGS) -fPIE -c usernetctl.c -o usernetctl.o
usernetctl: usernetctl.c usernetctl.o
- $(CC) $(LDFLAGS) -pie -o $@ $@.o
+ $(CC) $(LDFLAGS) -pie -z relro -z now -o $@ $@.o
+
+netreport.o: netreport.c
+ $(CC) $(CFLAGS) -fPIE -c netreport.c -o netreport.o
+
+netreport: netreport.o
+ $(CC) $(LDFLAGS) -pie -z relro -z now -o $@ $@.o
shvar.o: shvar.c
$(CC) $(CFLAGS) `pkg-config glib-2.0 --cflags` -c shvar.c -o shvar.o