From 341a1e0664a1a55709af60dde6f76963de0d731d Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Tue, 8 Dec 2015 01:50:17 +0100 Subject: [PATCH] mk: fix external library build when combine is enabled The object files are copied to prepare the internal combined library. It must be disabled when building an external library. It has been seen because the directory was missing: examples/ethtool/lib/x86_64-native-linuxapp-gcc/build/lib: No such file or directory Signed-off-by: Thomas Monjalon --- mk/rte.lib.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk index 3f026bf1e6..24c81e7e37 100644 --- a/mk/rte.lib.mk +++ b/mk/rte.lib.mk @@ -138,7 +138,7 @@ endif $(depfile_newer)),\ $(O_TO_S_DO)) -ifeq ($(CONFIG_RTE_BUILD_COMBINE_LIBS),y) +ifeq ($(CONFIG_RTE_BUILD_COMBINE_LIBS)$(EXTLIB_BUILD),yn) $(if $(or \ $(file_missing),\ $(call cmdline_changed,$(O_TO_C_STR)),\ @@ -161,7 +161,7 @@ $(LIB): $(OBJS-y) $(DEP_$(LIB)) FORCE $(depfile_missing),\ $(depfile_newer)),\ $(O_TO_A_DO)) -ifeq ($(CONFIG_RTE_BUILD_COMBINE_LIBS),y) +ifeq ($(CONFIG_RTE_BUILD_COMBINE_LIBS)$(EXTLIB_BUILD),yn) $(if $(or \ $(file_missing),\ $(call cmdline_changed,$(O_TO_C_STR)),\ -- 2.20.1