1
0

001-honor-ldflags.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --- a/pppd/plugins/radius/Makefile.linux
  2. +++ b/pppd/plugins/radius/Makefile.linux
  3. @@ -43,13 +43,13 @@ install: all
  4. $(INSTALL) -c -m 444 pppd-radattr.8 $(MANDIR)
  5. radius.so: radius.o libradiusclient.a
  6. - $(CC) -o radius.so -shared radius.o libradiusclient.a
  7. + $(CC) $(COPTS) -o radius.so -shared radius.o libradiusclient.a
  8. radattr.so: radattr.o
  9. - $(CC) -o radattr.so -shared radattr.o
  10. + $(CC) $(COPTS) -o radattr.so -shared radattr.o
  11. radrealms.so: radrealms.o
  12. - $(CC) -o radrealms.so -shared radrealms.o
  13. + $(CC) $(COPTS) -o radrealms.so -shared radrealms.o
  14. CLIENTOBJS = avpair.o buildreq.o config.o dict.o ip_util.o \
  15. clientid.o sendserver.o lock.o util.o md5.o
  16. --- a/pppd/plugins/rp-pppoe/Makefile.linux
  17. +++ b/pppd/plugins/rp-pppoe/Makefile.linux
  18. @@ -30,7 +30,7 @@ CFLAGS=$(COPTS) -I../../../include '-DRP
  19. all: rp-pppoe.so pppoe-discovery
  20. pppoe-discovery: pppoe-discovery.o debug.o
  21. - $(CC) -o pppoe-discovery pppoe-discovery.o debug.o
  22. + $(CC) $(CFLAGS) -o pppoe-discovery pppoe-discovery.o debug.o
  23. pppoe-discovery.o: pppoe-discovery.c
  24. $(CC) $(CFLAGS) -c -o pppoe-discovery.o pppoe-discovery.c
  25. @@ -39,7 +39,7 @@ debug.o: debug.c
  26. $(CC) $(CFLAGS) -c -o debug.o debug.c
  27. rp-pppoe.so: plugin.o discovery.o if.o common.o
  28. - $(CC) -o rp-pppoe.so -shared plugin.o discovery.o if.o common.o
  29. + $(CC) $(CFLAGS) -o rp-pppoe.so -shared plugin.o discovery.o if.o common.o
  30. install: all
  31. $(INSTALL) -d -m 755 $(LIBDIR)