mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
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:
parent
681ccdb175
commit
4d7eadcf5b
|
@ -62,6 +62,9 @@ EXTRA_OECONF += "ac_cv_header_ltdl_h=no"
|
||||||
# Prevent nagios from suffering host contamination if host has /bin/perl
|
# Prevent nagios from suffering host contamination if host has /bin/perl
|
||||||
EXTRA_OECONF += "ac_cv_path_PERL=${bindir}/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
|
# Set to "1" to allow nagios-core post-init to modify Apache configuration
|
||||||
NAGIOS_MODIFY_APACHE ??= "1"
|
NAGIOS_MODIFY_APACHE ??= "1"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user