From: Felix Fietkau Date: Sat, 14 Jul 2018 08:59:52 +0000 (+0200) Subject: ppp: add missing -fPIC to rp-pppoe.so CFLAGS X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=888a15ff8312cd157bc968b67c33d2f738883b79;p=openwrt%2Fstaging%2Faparcar.git ppp: add missing -fPIC to rp-pppoe.so CFLAGS Fixes build error with LTO Signed-off-by: Felix Fietkau --- diff --git a/package/network/services/ppp/patches/203-opt_flags.patch b/package/network/services/ppp/patches/203-opt_flags.patch index d0eb918299..069b8585f3 100644 --- a/package/network/services/ppp/patches/203-opt_flags.patch +++ b/package/network/services/ppp/patches/203-opt_flags.patch @@ -30,3 +30,14 @@ Signed-off-by: Jo-Philipp Wich OBJS = pppdump.o bsd-comp.o deflate.o zlib.o INSTALL= install +--- a/pppd/plugins/rp-pppoe/Makefile.linux ++++ b/pppd/plugins/rp-pppoe/Makefile.linux +@@ -39,7 +39,7 @@ debug.o: debug.c + $(CC) $(CFLAGS) -c -o debug.o debug.c + + rp-pppoe.so: plugin.o discovery.o if.o common.o +- $(CC) $(CFLAGS) -o rp-pppoe.so -shared plugin.o discovery.o if.o common.o ++ $(CC) $(CFLAGS) -fPIC -o rp-pppoe.so -shared plugin.o discovery.o if.o common.o + + install: all + $(INSTALL) -d -m 755 $(LIBDIR)