diff options
| author | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2023-07-17 16:50:36 +0200 |
|---|---|---|
| committer | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2023-07-26 15:38:14 +0200 |
| commit | 26a006cc76fbc65cae1b688da6f9bf5aa2456867 (patch) | |
| tree | 87ff321917b850ccd64b913b76e1a5123a77d1da /build_scripts/platforms/unix.py | |
| parent | dde6245d58f6af76ec49bb9b509a103374ac4c36 (diff) | |
Android Deployment: Rpath changes through linker flags
- Using patchelf to modify the binaries for rpath changes corrupts
the binary. This leads to binaries not being able to be loaded at
startup by the Android runtime which is required for establishing
callbacks from C++ back to Python.
- Using linker flags -Wl,-rpath='$ORIGIN' -Wl,-rpath='$ORIGIN/Qt/lib'
and disabling patchelf for Android cross compilation solves the issue
Task-number: PYSIDE-1612
Change-Id: I70e74d3ca2b0bc65e2565268c36038eeb7c47ddd
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'build_scripts/platforms/unix.py')
| -rw-r--r-- | build_scripts/platforms/unix.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build_scripts/platforms/unix.py b/build_scripts/platforms/unix.py index 8665fb2dc..570c4d570 100644 --- a/build_scripts/platforms/unix.py +++ b/build_scripts/platforms/unix.py @@ -238,7 +238,7 @@ def prepare_packages_posix(pyside_build, _vars, cross_build=False): pyside_build.prepare_standalone_clang(is_win=False) # Update rpath to $ORIGIN - if sys.platform.startswith('linux') or sys.platform.startswith('darwin'): + if (sys.platform.startswith('linux') or sys.platform.startswith('darwin')) and not is_android: rpath_path = destination_dir pyside_build.update_rpath(executables) pyside_build.update_rpath(pyside_build.package_libraries(rpath_path)) |
