From ef5b2363627dadacfee7da6ee0c7d1c2b40a30db Mon Sep 17 00:00:00 2001 From: Robert Sanford Date: Fri, 6 Dec 2013 11:48:34 -0500 Subject: [PATCH] pcap: fix build with empty LIBPCAP_CFLAGS In rte.sdkbuild.mk with CONFIG_RTE_LIBRTE_PMD_PCAP=y, we error-exit if LIBPCAP_CFLAGS is empty. On some distros (e.g., Centos 6.4), it is normal for "pcap-config --cflags" to output only a newline, because pcap header files reside in /usr/include/. Solution is to remove the line that checks whether LIBPCAP_CFLAGS is empty. Signed-off-by: Robert Sanford Acked-by: Thomas Monjalon --- mk/rte.sdkbuild.mk | 1 - 1 file changed, 1 deletion(-) diff --git a/mk/rte.sdkbuild.mk b/mk/rte.sdkbuild.mk index 0b6a7df8b9..112c288f9b 100644 --- a/mk/rte.sdkbuild.mk +++ b/mk/rte.sdkbuild.mk @@ -42,7 +42,6 @@ endif ifeq ($(CONFIG_RTE_LIBRTE_PMD_PCAP),y) LIBPCAP_CFLAGS ?= $(shell pcap-config --cflags) -$(if $(LIBPCAP_CFLAGS),,$(error LIBPCAP_CFLAGS is undefined)) EXTERNAL_LIB_CFLAGS += $(LIBPCAP_CFLAGS) endif -- 2.20.1