From: Thomas Monjalon Date: Tue, 8 Dec 2015 00:50:17 +0000 (+0100) Subject: mk: fix external library build when combine is enabled X-Git-Tag: spdx-start~7827 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=341a1e0664a1a55709af60dde6f76963de0d731d;p=dpdk.git 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 --- 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)),\