mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-21 12:26:36 +08:00
Android, FFmpeg: Explicitly set page-size for patchelf
Android arm64 and x86_64 builds now require 16KB page size alignment in native binaries, this includes FFmpeg. When running patchelf on the binaries, it will implicitly re-align the affected sections to 4KB page size. This patch solves this by using the --page-size flag for patchelf, only for the builds that require it. Pick-to: 6.8 Fixes: QTBUG-142332 Change-Id: Iba88bf702fd075d2b4432d9cde94f779b14de52f Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commitb9c677baad) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commitb4bb8734fb)
This commit is contained in:
committed by
Qt Cherry-pick Bot
parent
f082a74f99
commit
92dd9a8f0e
@@ -115,7 +115,13 @@ build_ffmpeg_android() {
|
||||
|
||||
if [[ "$build_type" == "shared" ]]; then
|
||||
local fix_dependencies="${BASH_SOURCE%/*}/../shared/fix_ffmpeg_dependencies.sh"
|
||||
sudo "${fix_dependencies}" "${target_dir}" "${libs_prefix}" "no"
|
||||
|
||||
local page_size_arg=""
|
||||
if [ $page_size == "use_16kb_page_size" ]; then
|
||||
page_size_arg="16384"
|
||||
fi
|
||||
|
||||
sudo "${fix_dependencies}" "${target_dir}" "${libs_prefix}" "no" "$page_size_arg"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user