ppp/ppp-2.4.2-pie.patch
OBS User autobuild 9df421b61f Accepting request 24479 from network
Copy from network/ppp based on submit request 24479 from user msmeissn

OBS-URL: https://build.opensuse.org/request/show/24479
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ppp?expand=0&rev=9
2009-11-16 11:54:31 +00:00

27 lines
841 B
Diff

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