aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/ppp/patches/300-filter-pcap-includes-lib.patch
blob: 843c9f2a0d356178b40553440dc5027b878fd92f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
build: Add required CFLAGS for libpcap

This patch adds some flags to required to properly link libpcap within the
OpenWrt environment.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

--- a/pppd/Makefile.linux
+++ b/pppd/Makefile.linux
@@ -178,8 +178,8 @@ endif
 
 ifdef FILTER
 ifneq ($(wildcard /usr/include/pcap-bpf.h),)
-LIBS    += -lpcap
-CFLAGS  += -DPPP_FILTER
+LIBS    += -lpcap -L$(STAGING_DIR)/usr/lib
+CFLAGS  += -DPPP_FILTER -I$(STAGING_DIR)/usr/include
 endif
 endif