mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-21 21:18:54 +00:00
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 <justin.he@arm.com>
This commit is contained in:
parent
367c2ac068
commit
7e22144664
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user