300-filter-pcap-includes-lib.patch 485 B

1234567891011121314151617181920
  1. build: Add required CFLAGS for libpcap
  2. This patch adds some flags to required to properly link libpcap within the
  3. OpenWrt environment.
  4. Signed-off-by: Jo-Philipp Wich <[email protected]>
  5. --- a/pppd/Makefile.linux
  6. +++ b/pppd/Makefile.linux
  7. @@ -170,8 +170,8 @@ endif
  8. ifdef FILTER
  9. ifneq ($(wildcard /usr/include/pcap-bpf.h),)
  10. -LIBS += -lpcap
  11. -CFLAGS += -DPPP_FILTER
  12. +LIBS += -lpcap -L$(STAGING_DIR)/usr/lib
  13. +CFLAGS += -DPPP_FILTER -I$(STAGING_DIR)/usr/include
  14. endif
  15. endif