| 1234567891011121314151617181920 |
- 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 <[email protected]>
- --- a/pppd/Makefile.linux
- +++ b/pppd/Makefile.linux
- @@ -170,8 +170,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
-
|