From c6417ce61f83702fb1114572100f55a89deb8fa9 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 27 Apr 2016 14:02:09 +0300 Subject: [PATCH] mk: add build-time library directory to linker path This is a pre-requisite for adding DT_NEEDED dependencies between internal libraries. Signed-off-by: Panu Matilainen Tested-by: Tetsuya Mukawa --- 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 8f7e021c5e..b420280d9e 100644 --- a/mk/rte.lib.mk +++ b/mk/rte.lib.mk @@ -86,8 +86,8 @@ O_TO_A_DO = @set -e; \ $(O_TO_A) && \ echo $(O_TO_A_CMD) > $(call exe2cmd,$(@)) -O_TO_S = $(LD) $(_CPU_LDFLAGS) $(EXTRA_LDFLAGS) -shared $(OBJS-y) $(LDLIBS) \ - -Wl,-soname,$(LIB) -o $(LIB) +O_TO_S = $(LD) -L$(RTE_OUTPUT)/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 $(@)") O_TO_S_DO = @set -e; \ -- 2.20.1