4656f8
diff -up ./rpc.yppasswdd/Makefile.am.relro ./rpc.yppasswdd/Makefile.am
4656f8
--- ./rpc.yppasswdd/Makefile.am.relro	2013-04-11 11:25:34.000000000 +0200
4656f8
+++ ./rpc.yppasswdd/Makefile.am	2013-05-06 18:48:10.888711995 +0200
4656f8
@@ -24,6 +24,8 @@ sbin_PROGRAMS = rpc.yppasswdd
4656f8
 
4656f8
 rpc_yppasswdd_SOURCES = update.c yppasswd_xdr.c yppasswdd.c
4656f8
 
4656f8
+rpc_yppasswdd_LDFLAGS = -Wl,-z,relro,-z,now
4656f8
+
4656f8
 rpc_yppasswdd_LDADD =  @PIE_LDFLAGS@ $(top_builddir)/lib/libyp.a $(LIBDBM) $(LIBCRYPT) $(LIBSYSTEMD_DAEMON)
4656f8
 rpc_yppasswdd_CFLAGS = @PIE_CFLAGS@
4656f8
 
4656f8
diff -up ./rpc.ypxfrd/Makefile.am.relro ./rpc.ypxfrd/Makefile.am
4656f8
--- ./rpc.ypxfrd/Makefile.am.relro	2013-04-09 16:38:20.000000000 +0200
4656f8
+++ ./rpc.ypxfrd/Makefile.am	2013-05-06 18:46:36.455683217 +0200
4656f8
@@ -22,6 +22,8 @@ sbin_PROGRAMS = rpc.ypxfrd
4656f8
 
4656f8
 rpc_ypxfrd_SOURCES = ypxfrd.c ypxfrd_server.c ypxfrd_svc.c
4656f8
 
4656f8
+rpc_ypxfrd_LDFLAGS = -Wl,-z,relro,-z,now 
4656f8
+
4656f8
 rpc_ypxfrd_LDADD = @PIE_LDFLAGS@ $(top_builddir)/lib/libyp.a @LIBDBM@ $(LIBSYSTEMD_DAEMON)
4656f8
 rpc_ypxfrd_CFLAGS = @PIE_CFLAGS@
4656f8
 
4656f8
diff -up ./yppush/Makefile.am.relro ./yppush/Makefile.am
4656f8
--- ./yppush/Makefile.am.relro	2009-04-02 14:15:35.000000000 +0200
4656f8
+++ ./yppush/Makefile.am	2013-05-06 18:46:36.456683217 +0200
4656f8
@@ -21,6 +21,8 @@ sbin_PROGRAMS = yppush
4656f8
 
4656f8
 yppush_SOURCES = yppush.c
4656f8
 
4656f8
+yppush_LDFLAGS = -Wl,-z,relro,-z,now 
4656f8
+
4656f8
 yppush_LDADD =  @PIE_LDFLAGS@ @LIBDBM@  $(top_builddir)/lib/libyp.a
4656f8
 yppush_CFLAGS = @PIE_CFLAGS@
4656f8
 
4656f8
diff -up ./ypserv/Makefile.am.relro ./ypserv/Makefile.am
4656f8
--- ./ypserv/Makefile.am.relro	2013-04-09 16:38:20.000000000 +0200
4656f8
+++ ./ypserv/Makefile.am	2013-05-06 18:46:36.457683217 +0200
4656f8
@@ -22,6 +22,8 @@ sbin_PROGRAMS = ypserv
4656f8
 
4656f8
 ypserv_SOURCES = ypserv.c server.c ypserv_xdr.c reg_slp.c
4656f8
 
4656f8
+ypserv_LDFLAGS = -Wl,-z,relro,-z,now 
4656f8
+
4656f8
 ypserv_LDADD =  @PIE_LDFLAGS@ $(top_builddir)/lib/libyp.a @LIBDBM@ @LIBSLP@ $(LIBSYSTEMD_DAEMON)
4656f8
 ypserv_CFLAGS = @PIE_CFLAGS@
4656f8