From a1e322f1f5eb155fd1c3907194054d0123830eed Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Sat, 25 Jun 2016 13:07:32 +0200 Subject: [PATCH] mk: fix external library link When building an external library with rte.extlib.mk, the internal libraries were not found because the linker search path was the external library install directory (RTE_OUTPUT/lib). It is fixed by searching in the internal library install directory (RTE_SDK_BIN/lib). When building an internal library, RTE_SDK_BIN = RTE_OUTPUT. Fixes: c6417ce61f83 ("mk: add build-time library directory to linker path") Signed-off-by: Thomas Monjalon --- mk/rte.lib.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk index d2523ee303..924dfb53ea 100644 --- a/mk/rte.lib.mk +++ b/mk/rte.lib.mk @@ -93,7 +93,7 @@ O_TO_A_DO = @set -e; \ $(O_TO_A) && \ echo $(O_TO_A_CMD) > $(call exe2cmd,$(@)) -O_TO_S = $(LD) -L$(RTE_OUTPUT)/lib $(_CPU_LDFLAGS) $(EXTRA_LDFLAGS) \ +O_TO_S = $(LD) -L$(RTE_SDK_BIN)/lib $(_CPU_LDFLAGS) $(EXTRA_LDFLAGS) \ -shared $(OBJS-y) $(LDLIBS) -Wl,-soname,$(LIB) -o $(LIB) O_TO_S_STR = $(subst ','\'',$(O_TO_S)) #'# fix syntax highlight O_TO_S_DISP = $(if $(V),"$(O_TO_S_STR)"," LD $(@)") -- 2.20.1