From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: [PATCH v2 2/7] mk: fix external library link Date: Sun, 26 Jun 2016 18:42:00 +0200 Message-ID: <1466959325-9426-3-git-send-email-thomas.monjalon@6wind.com> References: <1466959325-9426-1-git-send-email-thomas.monjalon@6wind.com> Cc: dev@dpdk.org To: Panu Matilainen Return-path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 788DC68E8 for ; Sun, 26 Jun 2016 18:42:12 +0200 (CEST) Received: by mail-wm0-f42.google.com with SMTP id a66so84952901wme.0 for ; Sun, 26 Jun 2016 09:42:12 -0700 (PDT) In-Reply-To: <1466959325-9426-1-git-send-email-thomas.monjalon@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 d2523ee..924dfb5 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.7.0