From: Olivier Matz Date: Wed, 17 Dec 2014 12:55:24 +0000 (+0100) Subject: examples/vm_power: fix split of compiler and linker options X-Git-Tag: spdx-start~9901 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=2e099bc5d104ca62c44b80b60207b213e8a23cd5;p=dpdk.git examples/vm_power: fix split of compiler and linker options The argument -lvirt is a linker parameter, not a CFLAG. Signed-off-by: Olivier Matz --- diff --git a/examples/vm_power_manager/Makefile b/examples/vm_power_manager/Makefile index b0a103733e..113dbc43ff 100644 --- a/examples/vm_power_manager/Makefile +++ b/examples/vm_power_manager/Makefile @@ -45,9 +45,11 @@ APP = vm_power_mgr SRCS-y := main.c vm_power_cli.c power_manager.c channel_manager.c SRCS-y += channel_monitor.c -CFLAGS += -O3 -lvirt -I$(RTE_SDK)/lib/librte_power/ +CFLAGS += -O3 -I$(RTE_SDK)/lib/librte_power/ CFLAGS += $(WERROR_FLAGS) +LDLIBS += -lvirt + # workaround for a gcc bug with noreturn attribute # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603 ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)