drivers/crypto: disable gcc 10 no-common errors
authorKevin Traynor <ktraynor@redhat.com>
Fri, 8 May 2020 16:27:55 +0000 (17:27 +0100)
committerAkhil Goyal <akhil.goyal@nxp.com>
Mon, 11 May 2020 11:17:43 +0000 (13:17 +0200)
commit50b03f3b8eaf725c9e9b35f614c4a33f9623e29a
tree9ea9635fa08bea52a386468101912f07900f6b4c
parentc08ced9a9a4a5f291f5f4d92f9a106f993b93737
drivers/crypto: disable gcc 10 no-common errors

gcc 10 defaults to -fno-common and as a result when linking
with crypto drivers:

drivers/librte_pmd_dpaa_sec.a(crypto_dpaa_sec_dpaa_sec.c.o):
(.bss+0x4): multiple definition of `rta_sec_era';
drivers/librte_pmd_caam_jr.a(crypto_caam_jr_caam_jr.c.o):
(.bss+0x0): first defined here

drivers/librte_pmd_dpaa2_sec.a(crypto_dpaa2_sec_dpaa2_sec_dpseci.c.o):
(.data+0x0): multiple definition of `rta_sec_era';
drivers/librte_pmd_caam_jr.a(crypto_caam_jr_caam_jr.c.o):
(.bss+0x0): first defined here

This is a blunt fix for the issue by enabling fcommon for
dpaa_sec/dpaa2_sec/caam_jr.

Bugzilla ID: 469
Cc: stable@dpdk.org
Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
drivers/crypto/caam_jr/Makefile
drivers/crypto/caam_jr/meson.build
drivers/crypto/dpaa2_sec/Makefile
drivers/crypto/dpaa2_sec/meson.build
drivers/crypto/dpaa_sec/Makefile
drivers/crypto/dpaa_sec/meson.build