[dpdk-dev] [PATCH 2/2] mk: move PMD libraries to applications

Thomas Monjalon thomas.monjalon at 6wind.com
Tue Jan 31 15:16:19 CET 2017

2017-01-31 12:14, Ferruh Yigit:
> Same PMDs provide device specific APIs. Bond and xenvirt are existing
> samples for this.


> And since these are PMD libraries, there are two options on how to link
> them.
> 1- They can be fully included to all applications, using common
> rte.app.mk file by default.
> 2- They can be explicitly linked to applications that use device
> specific API.
> Currently option one is in use, this patch switches to the option two.
> Moves library linking to the application of Makefile that uses device
> specific API.
> This prevent including these libraries into final applications that
> don't use these device specific APIs.

That's an interesting point of view.
What about the other libraries automatically linked in rte.app.mk?
Could we make each application decide which library they want to be
linked with?

More information about the dev mailing list