mk: fix build with shared pcap pmd
authorThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 15 Dec 2014 22:44:49 +0000 (23:44 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 16 Dec 2014 22:35:31 +0000 (23:35 +0100)
commiteced116610312ef0d500ae24fb96e1d919b82cc3
tree2f169f393fed56808a9aab176d0a4ae42549bf19
parent4c8b41715168101dc76fd9b264658837ff54ab76
mk: fix build with shared pcap pmd

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_pcap and -lpcap are enabled separately.

Workarounds in test-pmd/ and test-pipeline/ can be removed.

Reported-by: Stepan Sojka <stepan.sojka@adaptivemobile.com>
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
app/test-pipeline/Makefile
app/test-pmd/Makefile
mk/rte.app.mk