summaryrefslogtreecommitdiff
path: root/examples/vm_power_manager
diff options
context:
space:
mode:
authorOlivier Matz <olivier.matz@6wind.com>2014-12-17 13:55:24 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-12-18 00:26:08 +0100
commit2e099bc5d104ca62c44b80b60207b213e8a23cd5 (patch)
treece8764d7c3617c4fb3a4915fdc954fc4fa6c3be1 /examples/vm_power_manager
parentd50f463fbe0626108ab1f1254cce4c17f39c4f30 (diff)
downloaddpdk-2e099bc5d104ca62c44b80b60207b213e8a23cd5.zip
dpdk-2e099bc5d104ca62c44b80b60207b213e8a23cd5.tar.gz
dpdk-2e099bc5d104ca62c44b80b60207b213e8a23cd5.tar.xz
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 <olivier.matz@6wind.com>
Diffstat (limited to 'examples/vm_power_manager')
-rw-r--r--examples/vm_power_manager/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/vm_power_manager/Makefile b/examples/vm_power_manager/Makefile
index b0a1037..113dbc4 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)