From cf3e9c3f71d1e967bd166f6b2ca7339ae767e9c9 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 7 Mar 2018 17:20:24 +0100 Subject: [PATCH] rp-pppoe: fix linker errors Signed-off-by: Felix Fietkau --- net/rp-pppoe/patches/130-static-lib-fix.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 net/rp-pppoe/patches/130-static-lib-fix.patch 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 index 000000000..c7806dd00 --- /dev/null +++ b/net/rp-pppoe/patches/130-static-lib-fix.patch @@ -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 $<