aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/ppp/patches/511-pptp_cflags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/network/services/ppp/patches/511-pptp_cflags.patch')
-rw-r--r--package/network/services/ppp/patches/511-pptp_cflags.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/network/services/ppp/patches/511-pptp_cflags.patch b/package/network/services/ppp/patches/511-pptp_cflags.patch
new file mode 100644
index 0000000000..548bf41c1f
--- /dev/null
+++ b/package/network/services/ppp/patches/511-pptp_cflags.patch
@@ -0,0 +1,11 @@
+--- a/pppd/plugins/pptp/Makefile.linux
++++ b/pppd/plugins/pptp/Makefile.linux
+@@ -20,7 +20,7 @@ all: pptp.so
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+ pptp.so: dirutil.o orckit_quirks.o pptp.o pptp_callmgr.o pptp_ctrl.o pptp_quirks.o util.o vector.o
+- $(CC) -o pptp.so -shared dirutil.o orckit_quirks.o pptp.o pptp_callmgr.o pptp_ctrl.o pptp_quirks.o util.o vector.o
++ $(CC) -fPIC -o pptp.so -shared dirutil.o orckit_quirks.o pptp.o pptp_callmgr.o pptp_ctrl.o pptp_quirks.o util.o vector.o
+
+ install: all
+ $(INSTALL) -d -m 755 $(LIBDIR)