summaryrefslogtreecommitdiff
path: root/package/pptpd/patches/patch-plugins_Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/pptpd/patches/patch-plugins_Makefile')
-rw-r--r--package/pptpd/patches/patch-plugins_Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/package/pptpd/patches/patch-plugins_Makefile b/package/pptpd/patches/patch-plugins_Makefile
index cb32dd4ce..937e62ddf 100644
--- a/package/pptpd/patches/patch-plugins_Makefile
+++ b/package/pptpd/patches/patch-plugins_Makefile
@@ -1,5 +1,5 @@
--- pptpd-1.3.4.orig/plugins/Makefile 2006-08-03 04:02:01.000000000 +0200
-+++ pptpd-1.3.4/plugins/Makefile 2010-05-30 00:31:31.390625000 +0200
++++ pptpd-1.3.4/plugins/Makefile 2010-06-03 14:39:12.120974815 +0200
@@ -1,6 +1,6 @@
-CC = gcc
+CC ?= gcc
@@ -9,3 +9,12 @@
LDFLAGS = -shared
LDADD = -lutil
INSTALL = install -o root
+@@ -18,7 +18,7 @@ all: $(PLUGINS)
+ %.so: %.c
+ $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^ $(LDADD)
+
+-LIBDIR ?= $(DESTDIR)$(prefix)/lib/pptpd
++LIBDIR = $(DESTDIR)$(prefix)/lib/pptpd
+
+ install: $(PLUGINS)
+ $(INSTALL) -d $(LIBDIR)