mk: fix link of combined shared library using CC
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Tue, 28 Oct 2014 15:48:49 +0000 (15:48 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 16 Dec 2014 23:40:03 +0000 (00:40 +0100)
commit815cfb7925bb6de6755c7fabc5f36f067e984575
tree0fa21603ff1e7cdd98bbc3cdd3731076a6b1e884
parent944088c2abbe81c5bcf21fb3154e0bc7aa7b986d
mk: fix link of combined shared library using CC

If we set EXTRA_CFLAGS=-O0, build fails with following error:
/usr/bin/ld: test: hidden symbol `mknod' in /usr/lib64/libc_nonshared.a(mknod.oS) is referenced by DSO

Fix: link combined shared lib using CC if LINK_USING_CC is enabled.

Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
[Thomas: remove change to rte.lib.mk]
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
mk/rte.sharelib.mk