mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-24 09:34:24 +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>
Packaging scripts
This directory contains useful packaging scripts.
configure-hypervisor.sh
This script generates the official set of QEMU-based hypervisor build configuration options. All repositories that need to build a hypervisor from source MUST use this script to ensure the hypervisor is built in a known way since using a different set of options can impact many areas including performance, memory footprint and security.
Example usage:
$ configure-hypervisor.sh qemu