mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-07-15 10:22:34 +00:00
In some build env (Ubuntu 19.10 as example), gcc enabled the option -fcf-protection by default. But this option is not compatible with -mindirect-branch. Which could trigger following build error: fail to build with gcc-9 [error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible] -mindirect-branch is mandatory for retpoline mitigation and always enabled for ACRN build. We disable -fcf-protection here for ACRN build. Tracked-On: #4358 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Wu Binbin <binbin.wu@intel.com>
16 KiB
16 KiB