From 7e22144664a31689de7d086fdc01f576db2670a3 Mon Sep 17 00:00:00 2001 From: Jia He Date: Thu, 9 Apr 2020 16:00:33 +0800 Subject: [PATCH] scripts: Disable pie for qemu when static building --enable-pie is not compatible with --static option for qemu building. Without this patch, it will report a configure error during static building: ERROR: static and pie are mutually incompatible Fixes: #982 Signed-off-by: Jia He --- scripts/configure-hypervisor.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/configure-hypervisor.sh b/scripts/configure-hypervisor.sh index e1d2670b4f..70ef472803 100755 --- a/scripts/configure-hypervisor.sh +++ b/scripts/configure-hypervisor.sh @@ -432,7 +432,7 @@ generate_qemu_options() { fi # aarch64 need to explictly set --enable-pie - if [ "${arch}" = "aarch64" ]; then + if [ -z "${static}" ] && [ "${arch}" = "aarch64" ]; then qemu_options+=(arch:"--enable-pie") fi