rp-pppoe: fix linker errors
authorFelix Fietkau <redacted>
Wed, 7 Mar 2018 16:20:24 +0000 (17:20 +0100)
committerFelix Fietkau <redacted>
Wed, 7 Mar 2018 16:20:31 +0000 (17:20 +0100)
Signed-off-by: Felix Fietkau <redacted>
net/rp-pppoe/patches/130-static-lib-fix.patch [new file with mode: 0644]

diff --git a/net/rp-pppoe/patches/130-static-lib-fix.patch b/net/rp-pppoe/patches/130-static-lib-fix.patch
new file mode 100644 (file)
index 0000000..c7806dd
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -139,7 +139,8 @@ plugin/plugin.o: plugin.c
+       @CC@ -DPLUGIN=1 '-DRP_VERSION="$(VERSION)"' $(CFLAGS) -I$(PPPD_INCDIR) -c -o $@ -fPIC $<
+ plugin/libplugin.a: plugin/discovery.o plugin/if.o plugin/common.o plugin/debug.o
+-      ar -rc $@ $^
++      $(AR) -rc $@ $^
++      @RANLIB@ $@
+ plugin/discovery.o: discovery.c
+       @CC@ -DPLUGIN=1 $(CFLAGS) '-DVERSION="$(VERSION)"' -c -o $@ -fPIC $<
git clone https://git.99rst.org/PROJECT