200-makefile.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. pppd: tune Linux config defaults for OpenWrt
  2. This patch adjusts a number defaults to properly match the OpenWrt environment.
  3. It is not intended for upstream.
  4. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
  5. --- a/pppd/Makefile.linux
  6. +++ b/pppd/Makefile.linux
  7. @@ -48,7 +48,7 @@ MPPE=y
  8. # Uncomment the next line to include support for PPP packet filtering.
  9. # This requires that the libpcap library and headers be installed
  10. # and that the kernel driver support PPP packet filtering.
  11. -FILTER=y
  12. +#FILTER=y
  13. # Uncomment the next line to enable multilink PPP (enabled by default)
  14. # Linux distributions: Please leave multilink ENABLED in your builds
  15. @@ -58,7 +58,7 @@ HAVE_MULTILINK=y
  16. # Uncomment the next line to enable the TDB database (enabled by default.)
  17. # If you enable multilink, then TDB is automatically enabled also.
  18. # Linux distributions: Please leave TDB ENABLED in your builds.
  19. -USE_TDB=y
  20. +#USE_TDB=y
  21. HAS_SHADOW=y
  22. #USE_PAM=y
  23. @@ -80,7 +80,7 @@ MAXOCTETS=y
  24. INCLUDE_DIRS= -I../include
  25. -COMPILE_FLAGS= -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP
  26. +COMPILE_FLAGS= -DHAVE_PATHS_H -DHAVE_MMAP
  27. CFLAGS= $(COPTS) $(COMPILE_FLAGS) $(INCLUDE_DIRS) '-DDESTDIR="@DESTDIR@"'
  28. @@ -120,10 +120,10 @@ CFLAGS += -DHAS_SHADOW
  29. #LIBS += -lshadow $(LIBS)
  30. endif
  31. -ifneq ($(wildcard /usr/include/crypt.h),)
  32. +#ifneq ($(wildcard /usr/include/crypt.h),)
  33. CFLAGS += -DHAVE_CRYPT_H=1
  34. LIBS += -lcrypt
  35. -endif
  36. +#endif
  37. ifdef USE_LIBUTIL
  38. CFLAGS += -DHAVE_LOGWTMP=1