summaryrefslogtreecommitdiff
path: root/examples/l3fwd
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/l3fwd
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/l3fwd')
-rw-r--r--examples/l3fwd/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/l3fwd/Makefile b/examples/l3fwd/Makefile
index 5297688..c55f5c2 100644
--- a/examples/l3fwd/Makefile
+++ b/examples/l3fwd/Makefile
@@ -8,8 +8,7 @@ APP = l3fwd
SRCS-y := main.c l3fwd_lpm.c l3fwd_em.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