From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Sanford Subject: [PATCH] mk: fix pcap build with empty LIBPCAP_CFLAGS Date: Fri, 6 Dec 2013 11:48:34 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 To: dev-VfR2kkLFssw@public.gmane.org Return-path: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Fix pcap build - 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. --- mk/rte.sdkbuild.mk | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/mk/rte.sdkbuild.mk b/mk/rte.sdkbuild.mk index 33bed57..d9b6802 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 -- 1.7.1 Signed-off-by: Robert Sanford