summaryrefslogtreecommitdiff
path: root/examples/ipv4_multicast
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/ipv4_multicast
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/ipv4_multicast')
-rw-r--r--examples/ipv4_multicast/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/ipv4_multicast/Makefile b/examples/ipv4_multicast/Makefile
index a03bfad..5f8a67d 100644
--- a/examples/ipv4_multicast/Makefile
+++ b/examples/ipv4_multicast/Makefile
@@ -9,8 +9,7 @@ APP = ipv4_multicast
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