path: root/examples/l3fwd
diff options
authorBruce Richardson <>2019-11-15 15:17:00 +0000
committerThomas Monjalon <>2019-11-20 22:48:32 +0100
commit69b1bb49ed82a4e96b67046f4916eecc14c6ad55 (patch)
tree2c8f47ca7fb3a8261ceed752c0e23358ce113afa /examples/l3fwd
parent12a652a02b080f26a1e9fd0169a58d6bcbe7b03c (diff)
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: Signed-off-by: Bruce Richardson <> Tested-by: Ferruh Yigit <>
Diffstat (limited to 'examples/l3fwd')
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/l3fwd/Makefile b/examples/l3fwd/Makefile
index 042eae9..b2dbf26 100644
--- a/examples/l3fwd/Makefile
+++ b/examples/l3fwd/Makefile
@@ -19,7 +19,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)