summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2020-08-31 23:29:47 -0700
committerBruce Ashfield <bruce.ashfield@gmail.com>2020-09-02 16:30:40 -0400
commit4d7eadcf5b9aa19f627698262f2910d1ccde4e99 (patch)
treefecabfdf6db95a1c7c400e40b152e986a4d34e31
parent681ccdb175fc8fd5ca7796cb0535d17d1b6f0bb6 (diff)
downloadmeta-virtualization-4d7eadcf5b9aa19f627698262f2910d1ccde4e99.tar.gz
nagios-core: fix build failure for gcc-10
gcc-10 uses '-fno-common' by default, which results in build error complaining multiple definition. Use '-fcommon' to fix this problem. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--recipes-extended/nagios/nagios-core_4.4.3.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes-extended/nagios/nagios-core_4.4.3.bb b/recipes-extended/nagios/nagios-core_4.4.3.bb
index 7a86653b..c78259ee 100644
--- a/recipes-extended/nagios/nagios-core_4.4.3.bb
+++ b/recipes-extended/nagios/nagios-core_4.4.3.bb
@@ -62,6 +62,9 @@ EXTRA_OECONF += "ac_cv_header_ltdl_h=no"
62# Prevent nagios from suffering host contamination if host has /bin/perl 62# Prevent nagios from suffering host contamination if host has /bin/perl
63EXTRA_OECONF += "ac_cv_path_PERL=${bindir}/perl" 63EXTRA_OECONF += "ac_cv_path_PERL=${bindir}/perl"
64 64
65# Fix build failure for gcc-10
66CFLAGS_append = " -fcommon"
67
65# Set to "1" to allow nagios-core post-init to modify Apache configuration 68# Set to "1" to allow nagios-core post-init to modify Apache configuration
66NAGIOS_MODIFY_APACHE ??= "1" 69NAGIOS_MODIFY_APACHE ??= "1"
67 70