summaryrefslogtreecommitdiff
path: root/examples/ipv4_multicast
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2019-11-15 15:17:00 +0000
committerThomas Monjalon <thomas@monjalon.net>2019-11-20 22:48:32 +0100
commit69b1bb49ed82a4e96b67046f4916eecc14c6ad55 (patch)
tree2c8f47ca7fb3a8261ceed752c0e23358ce113afa /examples/ipv4_multicast
parent12a652a02b080f26a1e9fd0169a58d6bcbe7b03c (diff)
downloaddpdk-69b1bb49ed82a4e96b67046f4916eecc14c6ad55.zip
dpdk-69b1bb49ed82a4e96b67046f4916eecc14c6ad55.tar.gz
dpdk-69b1bb49ed82a4e96b67046f4916eecc14c6ad55.tar.xz
examples: hide error for missing pkg-config path flag
Some versions of pkg-config don't support the --path flag, which is not a fatal error when building the apps. Without the flag, the makefile just cannot track the .pc file of DPDK as a dependency of the build. Therefore, we can ignore the error and suppress it by redirecting to /dev/null the stderr from that call to pkg-config. Fixes: 22119c4591a0 ("examples: use pkg-config in makefiles") Cc: stable@dpdk.org Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Tested-by: Ferruh Yigit <ferruh.yigit@intel.com>
Diffstat (limited to 'examples/ipv4_multicast')
-rw-r--r--examples/ipv4_multicast/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ipv4_multicast/Makefile b/examples/ipv4_multicast/Makefile
index 5f9d738..92d3db0 100644
--- a/examples/ipv4_multicast/Makefile
+++ b/examples/ipv4_multicast/Makefile
@@ -20,7 +20,7 @@ static: build/$(APP)-static
PKGCONF ?= pkg-config
-PC_FILE := $(shell $(PKGCONF) --path libdpdk)
+PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)
CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)
LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)