mirror of
https://github.com/jiazhang0/meta-secure-core.git
synced 2026-07-16 12:47:00 +00:00
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:
@@ -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+"
|
||||
|
||||
Reference in New Issue
Block a user