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