Merge pull request #1009 from justin-he/static_pie

scripts: Disable pie for qemu when static building
This commit is contained in:
James O. D. Hunt 2020-04-16 09:56:51 +01:00 committed by GitHub
commit 2d9e63c26b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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