* [dpdk-dev] [PATCH] mk: add build-time library directory to linker path
@ 2016-04-27 11:02 Panu Matilainen
2016-04-28 6:43 ` Tetsuya Mukawa
0 siblings, 1 reply; 3+ messages in thread
From: Panu Matilainen @ 2016-04-27 11:02 UTC (permalink / raw)
To: dev; +Cc: thomas.monjalon, Tetsuya Mukawa, yuanhan.liu, huawei.xie
This is a pre-requisite for adding DT_NEEDED dependencies
between internal libraries.
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
---
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 8f7e021..b420280 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.5.5
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] mk: add build-time library directory to linker path
2016-04-27 11:02 [dpdk-dev] [PATCH] mk: add build-time library directory to linker path Panu Matilainen
@ 2016-04-28 6:43 ` Tetsuya Mukawa
2016-04-29 18:08 ` Yuanhan Liu
0 siblings, 1 reply; 3+ messages in thread
From: Tetsuya Mukawa @ 2016-04-28 6:43 UTC (permalink / raw)
To: Panu Matilainen, dev; +Cc: thomas.monjalon, yuanhan.liu, huawei.xie
On 2016/04/27 20:02, Panu Matilainen wrote:
> This is a pre-requisite for adding DT_NEEDED dependencies
> between internal libraries.
>
> Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
> ---
> 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 8f7e021..b420280 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; \
Tested-by: Tetsuya Mukawa <mukawa@igel.co.jp>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] mk: add build-time library directory to linker path
2016-04-28 6:43 ` Tetsuya Mukawa
@ 2016-04-29 18:08 ` Yuanhan Liu
0 siblings, 0 replies; 3+ messages in thread
From: Yuanhan Liu @ 2016-04-29 18:08 UTC (permalink / raw)
To: Panu Matilainen; +Cc: Tetsuya Mukawa, dev, thomas.monjalon, huawei.xie
On Thu, Apr 28, 2016 at 03:43:48PM +0900, Tetsuya Mukawa wrote:
> On 2016/04/27 20:02, Panu Matilainen wrote:
> > This is a pre-requisite for adding DT_NEEDED dependencies
> > between internal libraries.
> >
> > Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
> > ---
> > 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 8f7e021..b420280 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; \
> Tested-by: Tetsuya Mukawa <mukawa@igel.co.jp>
Applied to dpdk-next-virtio.
Thanks.
--yliu
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-04-29 18:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-27 11:02 [dpdk-dev] [PATCH] mk: add build-time library directory to linker path Panu Matilainen
2016-04-28 6:43 ` Tetsuya Mukawa
2016-04-29 18:08 ` Yuanhan Liu
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).