aboutsummaryrefslogtreecommitdiff
path: root/package/libpcap/libpcap.mk
diff options
context:
space:
mode:
authorGravatar Baruch Siach <baruch@tkos.co.il>2016-10-26 20:03:09 +0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-10-26 21:29:32 +0200
commita2d9202f6f9119e1cea44a913306e361b03d90e5 (patch)
treef6146cb2acebd3d8c041cf0ae18542c88bb233a4 /package/libpcap/libpcap.mk
parent20f73c2ecb3feb5f6014196e40ba2615f4e1c633 (diff)
downloadbuildroot-a2d9202f6f9119e1cea44a913306e361b03d90e5.tar.gz
buildroot-a2d9202f6f9119e1cea44a913306e361b03d90e5.tar.bz2
libpcap: drop libnl headers patch
We can avoid host headers using a --with-libnl parameter to override the default host headers path. The configure script adds /include suffix to the include path. So we still need to manually add -I with the correct path to CFLAGS because libnl headers are under the libnl3/ directory. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libpcap/libpcap.mk')
-rw-r--r--package/libpcap/libpcap.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/libpcap/libpcap.mk b/package/libpcap/libpcap.mk
index 4c7a66c09d..0a74de7b8e 100644
--- a/package/libpcap/libpcap.mk
+++ b/package/libpcap/libpcap.mk
@@ -51,6 +51,7 @@ endif
ifeq ($(BR2_PACKAGE_LIBNL),y)
LIBPCAP_DEPENDENCIES += libnl
LIBPCAP_CFLAGS += "-I$(STAGING_DIR)/usr/include/libnl3"
+LIBPCAP_CONF_OPTS += --with-libnl=$(STAGING_DIR)/usr
else
LIBPCAP_CONF_OPTS += --without-libnl
endif