LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File ppp-2.4.2-pie.patch of Package ppp (Project network)

Index: ppp-2.4.5.git/pppd/Makefile.linux
===================================================================
--- ppp-2.4.5.git.orig/pppd/Makefile.linux
+++ ppp-2.4.5.git/pppd/Makefile.linux
@@ -205,7 +205,7 @@ install: pppd
 	$(INSTALL) -m 644 pppd.8 $(MANDIR)
 
 pppd: $(PPPDOBJS)
-	$(CC) $(CFLAGS) $(LDFLAGS) -o pppd $(PPPDOBJS) $(LIBS)
+	$(CC) $(CFLAGS) -pie $(LDFLAGS) -o pppd $(PPPDOBJS) $(LIBS)
 
 srp-entry:	srp-entry.c
 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ srp-entry.c $(LIBS)
Index: ppp-2.4.5.git/chat/Makefile.linux
===================================================================
--- ppp-2.4.5.git.orig/chat/Makefile.linux
+++ ppp-2.4.5.git/chat/Makefile.linux
@@ -18,7 +18,7 @@ INSTALL= install
 all:	chat
 
 chat:	chat.o
-	$(CC) -o chat chat.o
+	$(CC) -pie -o chat chat.o
 
 chat.o:	chat.c
 	$(CC) -c $(CFLAGS) -o chat.o chat.c