mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-16 05:31:16 +00:00
Without -fpie or -fno-pie specified in the CFLAGS and ASFLAGS, different versions of riscv64-linux-gnu-gcc have different behavior, for example, Ubuntu 13.3.0-6ubuntu2~24.04 will compile as if -fpie, but 15.1.0 will compile as if -fno-pie. To make the build consistent specify -fpie when CONFIG_RELOC=y and -fno-pie otherwize explicitly. Tracked-On: #8791 Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>