]> git.droids-corp.org - dpdk.git/blobdiff - examples/l2fwd-crypto/Makefile
examples: fix build with old pkg-config
[dpdk.git] / examples / l2fwd-crypto / Makefile
index 87d311193a8f1855431d4923353d4719a098c767..ecfbab1f59c1ed9df32d6c6ad60f6e3342492f9c 100644 (file)
@@ -8,8 +8,7 @@ APP = l2fwd-crypto
 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
@@ -18,7 +17,7 @@ shared: build/$(APP)-shared
 static: build/$(APP)-static
        ln -sf $(APP)-static build/$(APP)
 
-PKGCONF=pkg-config --define-prefix
+PKGCONF ?= pkg-config
 
 PC_FILE := $(shell $(PKGCONF) --path libdpdk)
 CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)