qtbase: fix QLibraryInfo prefix with usrmerge

If Qt is configured to use 'relocatable' feature, QLibraryInfo will
at runtime try to determine its prefix path. If distro is using
usrmerge, Qt libraries are found from '/lib' before '/usr/lib' causing
Qt to use wrong prefix '/' when Qt was configure with '/usr' prefix.

With Yocto builds, we have no need for the relocatable feature,
disable it to avoid issues in usrmerge distros.

Pick-to: 6.6 6.5
Fixes: QTBUG-119140
Change-Id: Ied2ca04b5d46cff5d4bed1c456e95235156c58f0
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Samuli Piippo 2023-11-17 14:12:44 +00:00
parent 941adb0bd2
commit 5cfc35d4f0

View File

@ -164,6 +164,7 @@ EXTRA_OECMAKE += "\
EXTRA_OECMAKE:append:class-target = "\
-DFEATURE_rpath=OFF \
-DFEATURE_relocatable=OFF \
-DQT_QPA_DEFAULT_PLATFORM=${QT_QPA_DEFAULT_PLATFORM} \
"