mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-26 02:24:21 +01:00
Currently the the configure-hypervisor.sh doesn't set any optimization flag when compiling QEMU >= 5.2.0 since the configure script will implicitly set -O2 on Ubuntu. But on other environments, for example CentOS 7, it won't be set any optimization and this results on the compiler warn: # warning _FORTIFY_SOURCE requires compiling with optimization (-O) To avoid this inconsistent behavior across different build environments, let's explicitly set the -O2 flag. Reported-by: Eric Ernst <eric.g.ernst@gmail.com> Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>