|
@@ -17,13 +17,23 @@ Last-Update: 2015-12-04
|
|
|
|
|
|
--- a/plugins/Makefile
|
|
|
+++ b/plugins/Makefile
|
|
|
-@@ -1,7 +1,7 @@
|
|
|
+@@ -1,7 +1,8 @@
|
|
|
CC = gcc
|
|
|
COPTS = -O2 -g
|
|
|
-CFLAGS = $(COPTS) -I.. -I../../include -fPIC
|
|
|
-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
|
|
|
LDADD = -lutil
|
|
|
INSTALL = install -o root
|
|
|
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
|
|
|
+
|