DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 1/2] mk: add LDLIBS variable when producing the .so file
@ 2015-07-29 13:56 Nelio Laranjeiro
  2015-07-29 13:56 ` [dpdk-dev] [PATCH 2/2] mlx4: add missing library dependency when compiling in shared library Nelio Laranjeiro
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Nelio Laranjeiro @ 2015-07-29 13:56 UTC (permalink / raw)
  To: dev

Some .so libraries needs to be linked with external libraries.  For that the
LDLIBS variable 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>
---
 mk/rte.lib.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk
index 9ff5cce..3a07603 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) $(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; \
-- 
1.9.1

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-08-02 22:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-29 13:56 [dpdk-dev] [PATCH 1/2] mk: add LDLIBS variable when producing the .so file Nelio Laranjeiro
2015-07-29 13:56 ` [dpdk-dev] [PATCH 2/2] mlx4: add missing library dependency when compiling in shared library Nelio Laranjeiro
2015-07-30 14:48 ` [dpdk-dev] [PACTH v2 1/2] mk: use LDLIBS variable when building the shared object file Nelio Laranjeiro
2015-07-30 14:48   ` [dpdk-dev] [PACTH v2 2/2] mlx4: fix shared library dependency Nelio Laranjeiro
2015-07-30 16:22     ` Thomas Monjalon
2015-07-31 13:14 ` [dpdk-dev] [PACTH v3 1/2] mk: use LDLIBS and EXTRA_LDFLAGS variable when building the shared object file Nelio Laranjeiro
2015-07-31 13:14   ` [dpdk-dev] [PACTH v3 2/2] mlx4: fix shared library dependency Nelio Laranjeiro
2015-08-02 22:23     ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).