[dpdk-dev] [PATCH v2] mk: fix build with shared pcap pmd

2014-12-17 Thread Thomas Monjalon
2014-12-16 16:42, Neil Horman: > On Tue, Dec 16, 2014 at 03:39:56PM +0100, Thomas Monjalon wrote: > > 2014-12-16 08:58, Neil Horman: > > > On Tue, Dec 16, 2014 at 12:04:44AM +0100, Thomas Monjalon wrote: > > > > Some applications doesn't have the pcap link flag > > > > when shared libraries are ena

[dpdk-dev] [PATCH v2] mk: fix build with shared pcap pmd

2014-12-16 Thread Neil Horman
On Tue, Dec 16, 2014 at 03:39:56PM +0100, Thomas Monjalon wrote: > 2014-12-16 08:58, Neil Horman: > > On Tue, Dec 16, 2014 at 12:04:44AM +0100, Thomas Monjalon wrote: > > > Some applications doesn't have the pcap link flag > > > when shared libraries are enabled. > > > Indeed in such case, pcap PMD

[dpdk-dev] [PATCH v2] mk: fix build with shared pcap pmd

2014-12-16 Thread Thomas Monjalon
2014-12-16 08:58, Neil Horman: > On Tue, Dec 16, 2014 at 12:04:44AM +0100, Thomas Monjalon wrote: > > Some applications doesn't have the pcap link flag > > when shared libraries are enabled. > > Indeed in such case, pcap PMD must not be linked but pcap library should. > > > > Actually -lpcap is al

[dpdk-dev] [PATCH v2] mk: fix build with shared pcap pmd

2014-12-16 Thread Neil Horman
On Tue, Dec 16, 2014 at 12:04:44AM +0100, Thomas Monjalon wrote: > Some applications doesn't have the pcap link flag > when shared libraries are enabled. > Indeed in such case, pcap PMD must not be linked but pcap library should. > > Actually -lpcap is always needed if pcap PMD is used, > and -lrt

[dpdk-dev] [PATCH v2] mk: fix build with shared pcap pmd

2014-12-16 Thread Thomas Monjalon
Some applications doesn't have the pcap link flag when shared libraries are enabled. Indeed in such case, pcap PMD must not be linked but pcap library should. Actually -lpcap is always needed if pcap PMD is used, and -lrte_pmd_pcap must be set only with static PMD library. So the flags -lrte_pmd_p