summaryrefslogtreecommitdiff
path: root/examples/timer
diff options
context:
space:
mode:
authorBruce Richardson <[email protected]>2019-07-03 17:40:00 +0100
committerThomas Monjalon <[email protected]>2019-07-03 23:10:23 +0200
commit4131ad5db79a016970287282b938ebed2f19bdb3 (patch)
tree61dd45e805982b1e5ebde59adcb07750066c2f61 /examples/timer
parentfc4ebf78723ed359614fdde722e76272e79adc52 (diff)
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: [email protected] Signed-off-by: Bruce Richardson <[email protected]> Acked-by: Luca Boccassi <[email protected]>
Diffstat (limited to 'examples/timer')
-rw-r--r--examples/timer/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/timer/Makefile b/examples/timer/Makefile
index d21e4c63c2..a861783551 100644
--- a/examples/timer/Makefile
+++ b/examples/timer/Makefile
@@ -8,8 +8,7 @@ APP = timer
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