app/testpmd: fix static build link ordering
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Thu, 12 Jan 2017 07:46:54 +0000 (13:16 +0530)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 13 Jan 2017 16:31:16 +0000 (17:31 +0100)
commitd74cbeca7596b3237fe5b823fb8a4bcfe8a7d979
tree51c10d8f82daf94df7e48d3c0c68b276aae9d267
parent2d150e938bfa17e75ba260242a14ca95ba4ac06a
app/testpmd: fix static build link ordering

By introducing explicit -lrte_pmd_ixgbe link request in
testpmd Makefile,"-Wl,-lrte_pmd_ixgbe" provided twice, and linker
removes the duplication by keeping only first occurrence.
This moves "-Wl,-lrte_pmd_ixgbe" out of "-Wl,--whole-archive" flag
and makes symbol generation totally different than previous version
in case of static build.
This patch fixes the static build linking order by introducing
-lrte_pmd_ixgbe under the shared library config
(CONFIG_RTE_BUILD_SHARED_LIB).

Fixes: 425781ff5afe ("app/testpmd: add ixgbe VF management")

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
app/test-pmd/Makefile