X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=examples%2Fvm_power_manager%2FMakefile;fp=examples%2Fvm_power_manager%2FMakefile;h=50147c05d3d53e37867c73a6dc6c7f8c28fc7ac0;hb=8d01b9cd70a67cdafd5b965a70420c3bd7fb3f82;hp=13a5205ba46f012222ffc0bb916d0775e518c5c0;hpb=b63264c8342e6a1b6971c79550d2af2024b6a4de;p=deb_dpdk.git diff --git a/examples/vm_power_manager/Makefile b/examples/vm_power_manager/Makefile index 13a5205b..50147c05 100644 --- a/examples/vm_power_manager/Makefile +++ b/examples/vm_power_manager/Makefile @@ -31,6 +31,12 @@ CFLAGS += $(WERROR_FLAGS) LDLIBS += -lvirt +JANSSON := $(shell pkg-config --exists jansson; echo $$?) +ifeq ($(JANSSON), 0) +LDLIBS += $(shell pkg-config --libs jansson) +CFLAGS += -DUSE_JANSSON +endif + ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y) ifeq ($(CONFIG_RTE_LIBRTE_IXGBE_PMD),y)