[dpdk-dev] [PATCH] mk: fix external shared library dependencies of libraries

2015-12-08 Thread Panu Matilainen
On 12/08/2015 01:19 PM, Panu Matilainen wrote: > On 12/08/2015 12:11 PM, Thomas Monjalon wrote: >> Hi Panu, >> >> 2015-12-08 10:30, Panu Matilainen: >>> --- a/lib/librte_vhost/Makefile >>> +++ b/lib/librte_vhost/Makefile >>> @@ -44,10 +44,12 @@ CFLAGS += -I vhost_user >>> else >>> CFLAGS += -I

[dpdk-dev] [PATCH] mk: fix external shared library dependencies of libraries

2015-12-08 Thread Panu Matilainen
On 12/08/2015 12:11 PM, Thomas Monjalon wrote: > Hi Panu, > > 2015-12-08 10:30, Panu Matilainen: >> --- a/lib/librte_vhost/Makefile >> +++ b/lib/librte_vhost/Makefile >> @@ -44,10 +44,12 @@ CFLAGS += -I vhost_user >> else >> CFLAGS += -I vhost_cuse -lfuse >> LDFLAGS += -lfuse >> +LDLIBS += -l

[dpdk-dev] [PATCH] mk: fix external shared library dependencies of libraries

2015-12-08 Thread Thomas Monjalon
Hi Panu, 2015-12-08 10:30, Panu Matilainen: > --- a/lib/librte_vhost/Makefile > +++ b/lib/librte_vhost/Makefile > @@ -44,10 +44,12 @@ CFLAGS += -I vhost_user > else > CFLAGS += -I vhost_cuse -lfuse > LDFLAGS += -lfuse > +LDLIBS += -lfuse > endif > > ifeq ($(CONFIG_RTE_LIBRTE_VHOST_NUMA),y)

[dpdk-dev] [PATCH] mk: fix external shared library dependencies of libraries

2015-12-08 Thread Panu Matilainen
Similar to commit 5f9115e58cc6f304ff4ade694cf5823d32887d1a etc, but for libraries. Requiring applications to know about library internal details like dependencies to external helper libraries is a limitation of static linkage, shared libraries should always know their own dependencies for sane ope