diff options
author | Bruce Richardson <bruce.richardson@intel.com> | 2019-11-15 15:17:00 +0000 |
---|---|---|
committer | Thomas Monjalon <thomas@monjalon.net> | 2019-11-20 22:48:32 +0100 |
commit | 69b1bb49ed82a4e96b67046f4916eecc14c6ad55 (patch) | |
tree | 2c8f47ca7fb3a8261ceed752c0e23358ce113afa /examples/fips_validation | |
parent | 12a652a02b080f26a1e9fd0169a58d6bcbe7b03c (diff) | |
download | dpdk-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/fips_validation')
-rw-r--r-- | examples/fips_validation/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/fips_validation/Makefile b/examples/fips_validation/Makefile index da5c8f6..1385e8c 100644 --- a/examples/fips_validation/Makefile +++ b/examples/fips_validation/Makefile @@ -28,7 +28,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) |