patch-pppd_plugins_radius_Makefile_linux 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. --- ppp-2.4.4.orig/pppd/plugins/radius/Makefile.linux 2006-06-04 07:04:14.000000000 +0200
  2. +++ ppp-2.4.4/pppd/plugins/radius/Makefile.linux 2009-06-05 19:12:00.000000000 +0200
  3. @@ -12,7 +12,8 @@ VERSION = $(shell awk -F '"' '/VERSION/
  4. INSTALL = install
  5. PLUGIN=radius.so radattr.so radrealms.so
  6. -CFLAGS=-I. -I../.. -I../../../include -O2 -fPIC -DRC_LOG_FACILITY=LOG_DAEMON
  7. +COPTS = -O2
  8. +CFLAGS=-I. -I../.. -I../../../include $(COPTS) -fPIC -DRC_LOG_FACILITY=LOG_DAEMON
  9. # Uncomment the next line to include support for Microsoft's
  10. # MS-CHAP authentication protocol.
  11. @@ -36,9 +37,9 @@ all: $(PLUGIN)
  12. install: all
  13. $(INSTALL) -d -m 755 $(LIBDIR)
  14. - $(INSTALL) -s -c -m 755 radius.so $(LIBDIR)
  15. - $(INSTALL) -s -c -m 755 radattr.so $(LIBDIR)
  16. - $(INSTALL) -s -c -m 755 radrealms.so $(LIBDIR)
  17. + $(INSTALL) -c -m 755 radius.so $(LIBDIR)
  18. + $(INSTALL) -c -m 755 radattr.so $(LIBDIR)
  19. + $(INSTALL) -c -m 755 radrealms.so $(LIBDIR)
  20. $(INSTALL) -c -m 444 pppd-radius.8 $(MANDIR)
  21. $(INSTALL) -c -m 444 pppd-radattr.8 $(MANDIR)
  22. @@ -54,7 +55,7 @@ radrealms.so: radrealms.o
  23. CLIENTOBJS = avpair.o buildreq.o config.o dict.o ip_util.o \
  24. clientid.o sendserver.o lock.o util.o md5.o
  25. libradiusclient.a: $(CLIENTOBJS)
  26. - $(AR) rv $@ $?
  27. + $(TARGET_AR) rcsv $@ $?
  28. clean:
  29. rm -f *.o *.so *.a