trousers: fix build failure for gcc-10

gcc-10 uses '-fno-common' by default, causing build error of
multiple definition. Use '-fcommon' to fix this problem.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
This commit is contained in:
Chen Qi
2020-09-01 18:45:20 -07:00
committed by Jia Zhang
parent 6c64d71334
commit 4d59dc3037
@@ -38,6 +38,9 @@ inherit autotools pkgconfig useradd update-rc.d \
EXTRA_OECONF="--with-gui=none"
# Fix build failure for gcc-10
CFLAGS_append = " -fcommon"
PACKAGECONFIG ?= "gmp "
PACKAGECONFIG[gmp] = "--with-gmp, --with-gmp=no, gmp"
PACKAGECONFIG[gtk] = "--with-gui=gtk, --with-gui=none, gtk+"