summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorNelio Laranjeiro <nelio.laranjeiro@6wind.com>2015-07-31 15:14:17 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-08-03 00:38:26 +0200
commitbef06a8a0655a2d5b2d0e30bb46b3a64b1f13881 (patch)
tree2e973e270a42749d1ded6cb40574503fe6cc6c67 /mk
parent0ea73979aabdbf2ab26fc354479035485873a4e3 (diff)
downloaddpdk-bef06a8a0655a2d5b2d0e30bb46b3a64b1f13881.zip
dpdk-bef06a8a0655a2d5b2d0e30bb46b3a64b1f13881.tar.gz
dpdk-bef06a8a0655a2d5b2d0e30bb46b3a64b1f13881.tar.xz
mk: set library dependencies in shared object file
Some .so libraries needs to be linked with external libraries. For that the LDLIBS and EXTRA_LDFLAGS variables should be present on the link line when those .so files are created. PMD Makefile is responsible for filling the LDLIBS variable with the link to the external library it needs. Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
Diffstat (limited to 'mk')
-rw-r--r--mk/rte.lib.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk
index 9ff5cce..fcc8e20 100644
--- a/mk/rte.lib.mk
+++ b/mk/rte.lib.mk
@@ -81,7 +81,8 @@ O_TO_A_DO = @set -e; \
$(O_TO_A) && \
echo $(O_TO_A_CMD) > $(call exe2cmd,$(@))
-O_TO_S = $(LD) $(_CPU_LDFLAGS) -shared $(OBJS-y) -Wl,-soname,$(LIB) -o $(LIB)
+O_TO_S = $(LD) $(_CPU_LDFLAGS) $(EXTRA_LDFLAGS) $(LDLIBS) -shared $(OBJS-y) \
+ -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; \