From 4d59dc3037e54880bd3016839936e03364e63eb0 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Tue, 1 Sep 2020 18:45:20 -0700 Subject: [PATCH] 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 --- meta-tpm/recipes-tpm/trousers/trousers_git.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-tpm/recipes-tpm/trousers/trousers_git.bb b/meta-tpm/recipes-tpm/trousers/trousers_git.bb index f899f5e..601d35d 100644 --- a/meta-tpm/recipes-tpm/trousers/trousers_git.bb +++ b/meta-tpm/recipes-tpm/trousers/trousers_git.bb @@ -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+"