From: Nils Rennebarth <nils.renneba...@teldat.de>

Do not link against libevent if present on your target. That lib is
completely different from the libevent in rp-pppoe. The lib is part
of the dependencies, so no -L and -l are necessary anyway.

Signed-off-by: Nils Rennebarth <nils.renneba...@teldat.com>
---
 net/rp-pppoe/patches/110-Makefile.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 net/rp-pppoe/patches/110-Makefile.patch

diff --git a/net/rp-pppoe/patches/110-Makefile.patch 
b/net/rp-pppoe/patches/110-Makefile.patch
new file mode 100644
index 0000000..9dc1c72
--- /dev/null
+++ b/net/rp-pppoe/patches/110-Makefile.patch
@@ -0,0 +1,11 @@
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -71,7 +71,7 @@ pppoe-sniff: pppoe-sniff.o if.o common.o
+       @CC@ -o $@ $^ $(LDFLAGS)
+ 
+ pppoe-server: pppoe-server.o if.o debug.o common.o md5.o libevent/libevent.a 
@PPPOE_SERVER_DEPS@
+-      @CC@ -o $@ @RDYNAMIC@ $^ $(LDFLAGS) $(PPPOE_SERVER_LIBS) -Llibevent 
-levent
++      @CC@ -o $@ @RDYNAMIC@ $^ $(LDFLAGS) $(PPPOE_SERVER_LIBS)
+ 
+ pppoe: pppoe.o if.o debug.o common.o ppp.o discovery.o
+       @CC@ -o $@ $^ $(LDFLAGS)
-- 
1.8.1.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to