diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-07-14 10:59:52 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-07-14 11:00:23 +0200 |
commit | 888a15ff8312cd157bc968b67c33d2f738883b79 (patch) | |
tree | bb4d36d9780fadf18f6438fb17bfc408bac61c4e /package/network/services | |
parent | 2601e34fad9e523b87c310386ba9b7bace4025e2 (diff) | |
download | upstream-888a15ff8312cd157bc968b67c33d2f738883b79.tar.gz upstream-888a15ff8312cd157bc968b67c33d2f738883b79.tar.bz2 upstream-888a15ff8312cd157bc968b67c33d2f738883b79.zip |
ppp: add missing -fPIC to rp-pppoe.so CFLAGS
Fixes build error with LTO
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/network/services')
-rw-r--r-- | package/network/services/ppp/patches/203-opt_flags.patch | 11 |
1 files changed, 11 insertions, 0 deletions
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 <jo@mein.io> 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) |