mk: use whole-archive option to keep unused symbols
authorOlivier Matz <olivier.matz@6wind.com>
Fri, 28 Feb 2014 17:25:40 +0000 (18:25 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 10 Apr 2014 12:53:59 +0000 (14:53 +0200)
commit20afd76a504155e947c770783ef5023e87136ad8
tree5a150cfd1adffdaae8fa33993b91c1bd700d7e28
parentf283b30509d2db745e7467fd5e2ccd2c84cc44cc
mk: use whole-archive option to keep unused symbols

To fully support dpdk extensions (loading of .so), all symbols provided
by dpdk libraries must be available in the binaries: before this patch,
unused functions/variables from dpdk static libraries could be stripped
by the linker because they are not used. These symbols can be used by a
dpdk extension that is loaded at runtime with the -d option.

Adding --whole-archive when generating a binary solves this issue.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
mk/rte.app.mk