diff options
| author | Bruce Richardson <[email protected]> | 2019-11-15 15:17:00 +0000 |
|---|---|---|
| committer | Thomas Monjalon <[email protected]> | 2019-11-20 22:48:32 +0100 |
| commit | 69b1bb49ed82a4e96b67046f4916eecc14c6ad55 (patch) | |
| tree | 2c8f47ca7fb3a8261ceed752c0e23358ce113afa /examples/helloworld | |
| parent | 12a652a02b080f26a1e9fd0169a58d6bcbe7b03c (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: [email protected]
Signed-off-by: Bruce Richardson <[email protected]>
Tested-by: Ferruh Yigit <[email protected]>
Diffstat (limited to 'examples/helloworld')
| -rw-r--r-- | examples/helloworld/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/helloworld/Makefile b/examples/helloworld/Makefile index 267f90b4e0..16d82b02f0 100644 --- a/examples/helloworld/Makefile +++ b/examples/helloworld/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) |
