X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fbond%2FMakefile;h=2030ca410a9b4e485bde86107fc46d3b89d521b4;hb=1d89ccf32301304580940716eb0a3b2324407d4f;hp=96868f2fc6743500ee8e89cae65a03985e72795a;hpb=ca9268529d2be1764054591ad57a7aac008e16b4;p=dpdk.git diff --git a/examples/bond/Makefile b/examples/bond/Makefile index 96868f2fc6..2030ca410a 100644 --- a/examples/bond/Makefile +++ b/examples/bond/Makefile @@ -8,8 +8,7 @@ APP = bond_app 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 @@ -20,9 +19,9 @@ static: build/$(APP)-static LDFLAGS += -lrte_pmd_bond -PKGCONF=pkg-config --define-prefix +PKGCONF ?= pkg-config -PC_FILE := $(shell $(PKGCONF) --path libdpdk) +PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk) LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)