summaryrefslogtreecommitdiff
path: root/examples/fips_validation
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2019-07-03 17:40:00 +0100
committerThomas Monjalon <thomas@monjalon.net>2019-07-03 23:10:23 +0200
commit4131ad5db79a016970287282b938ebed2f19bdb3 (patch)
tree61dd45e805982b1e5ebde59adcb07750066c2f61 /examples/fips_validation
parentfc4ebf78723ed359614fdde722e76272e79adc52 (diff)
downloaddpdk-4131ad5db79a016970287282b938ebed2f19bdb3.zip
dpdk-4131ad5db79a016970287282b938ebed2f19bdb3.tar.gz
dpdk-4131ad5db79a016970287282b938ebed2f19bdb3.tar.xz
examples: fix pkg-config detection with older make
Make versions before 4.2 did not have support for the .SHELLSTATUS variable, so use another method to detect shell success. Fixes: 22119c4591a0 ("examples: use pkg-config in makefiles") Cc: stable@dpdk.org Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Luca Boccassi <bluca@debian.org>
Diffstat (limited to 'examples/fips_validation')
-rw-r--r--examples/fips_validation/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/fips_validation/Makefile b/examples/fips_validation/Makefile
index f8cbba5..9485daf 100644
--- a/examples/fips_validation/Makefile
+++ b/examples/fips_validation/Makefile
@@ -17,8 +17,7 @@ SRCS-y += fips_dev_self_test.c
SRCS-y += main.c
# Build using pkg-config variables if possible
-$(shell pkg-config --exists libdpdk)
-ifeq ($(.SHELLSTATUS),0)
+ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)
all: shared
.PHONY: shared static