Root/package/network/services/ppp/patches/300-filter-pcap-includes-lib.patch

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

Archive Download this file



interactive