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>
This commit is contained in:
Chen Qi 2020-08-31 23:29:47 -07:00 committed by Bruce Ashfield
parent 681ccdb175
commit 4d7eadcf5b

View File

@ -62,6 +62,9 @@ EXTRA_OECONF += "ac_cv_header_ltdl_h=no"
# Prevent nagios from suffering host contamination if host has /bin/perl
EXTRA_OECONF += "ac_cv_path_PERL=${bindir}/perl"
# Fix build failure for gcc-10
CFLAGS_append = " -fcommon"
# Set to "1" to allow nagios-core post-init to modify Apache configuration
NAGIOS_MODIFY_APACHE ??= "1"