summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorRobert Sanford <rsanford@prolexic.com>2013-12-06 11:48:34 -0500
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-01-15 18:11:18 +0100
commited981bdd51d5b78d5fc5f25e80f6daad79c7dc9a (patch)
treebb0d0bf84810532360f35c2ad7ee6631a070618e /mk
parent6578307bee3a248a3cab963084cbc52b4beb421a (diff)
downloaddpdk-ed981bdd51d5b78d5fc5f25e80f6daad79c7dc9a.zip
dpdk-ed981bdd51d5b78d5fc5f25e80f6daad79c7dc9a.tar.gz
dpdk-ed981bdd51d5b78d5fc5f25e80f6daad79c7dc9a.tar.xz
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 <rsanford@prolexic.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Diffstat (limited to 'mk')
-rw-r--r--mk/rte.sdkbuild.mk1
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