|
@@ -17,13 +17,23 @@ Last-Update: 2015-12-04
|
|
|
|
|
|
--- a/plugins/Makefile
|
|
--- a/plugins/Makefile
|
|
+++ b/plugins/Makefile
|
|
+++ b/plugins/Makefile
|
|
-@@ -1,7 +1,7 @@
|
|
|
|
|
|
+@@ -1,7 +1,8 @@
|
|
CC = gcc
|
|
CC = gcc
|
|
COPTS = -O2 -g
|
|
COPTS = -O2 -g
|
|
-CFLAGS = $(COPTS) -I.. -I../../include -fPIC
|
|
-CFLAGS = $(COPTS) -I.. -I../../include -fPIC
|
|
-LDFLAGS = -shared
|
|
-LDFLAGS = -shared
|
|
-+CFLAGS = $(shell dpkg-buildflags --get CFLAGS) $(COPTS) -I.. -I../../include -fPIC
|
|
|
|
|
|
++CFLAGS = $(shell dpkg-buildflags --get CFLAGS) $(COPTS) -I.. -I../../include -fPIC
|
|
|
|
++CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
|
|
+LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) -shared
|
|
+LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) -shared
|
|
LDADD = -lutil
|
|
LDADD = -lutil
|
|
INSTALL = install -o root
|
|
INSTALL = install -o root
|
|
prefix = /usr/local
|
|
prefix = /usr/local
|
|
|
|
+@@ -16,7 +17,7 @@
|
|
|
|
+ all: $(PLUGINS)
|
|
|
|
+
|
|
|
|
+ %.so: %.c
|
|
|
|
+- $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^ $(LDADD)
|
|
|
|
++ $(CC) -o $@ $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) $^ $(LDADD)
|
|
|
|
+
|
|
|
|
+ LIBDIR ?= $(DESTDIR)$(prefix)/lib/pptpd
|
|
|
|
+
|