mk: fix build of shared library with libbsd
authorThomas Monjalon <thomas@monjalon.net>
Tue, 12 Feb 2019 22:07:05 +0000 (23:07 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 24 Feb 2019 22:23:57 +0000 (23:23 +0100)
commitfdb3798d6f870f79d5fa40b2c3425e8285dd4e44
tree2ef964f1d6a28317cc16ff5e039ac460e3852432
parent7c7b7562252742a6c298de64df486873336fd058
mk: fix build of shared library with libbsd

When building DPDK with "make" and options
CONFIG_RTE_USE_LIBBSD=y
and
CONFIG_RTE_BUILD_SHARED_LIB=y
libbsd was not linked, resulting in compilation errors:
undefined reference to `strlcpy'

The link option -lbsd is added in a common place for both
Linux apps and libs.
It is used in app linkage via EXECENV_LDLIBS,
and in lib linkage via the added variable EXECENV_LDLIBS-y.

Fixes: 5364de644a4b ("eal: support strlcpy function")
Cc: stable@dpdk.org
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
mk/exec-env/linuxapp/rte.vars.mk
mk/rte.app.mk
mk/rte.lib.mk