Fix yocto cross build
When cross-compiling Qt using a Yocto sysroot, if the sysroot already contains an installed Qt version, and a project (library or executable) does not explicitly link against all of its Qt dependencies, the cross linker will try to find a suitable library in the sysroot ./lib folder. This mighy lead to issues, because the linker will pick up an installed Qt library which might have different symbol versioning, and thus cause linker errors. This happened with the print support module. Make sure the print support module explicitly links against the newly built Qt modules. Task-number: QTBUG-74133 Change-Id: I876b1507c655673831e78dcfe737a5ede2a8c087 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>bb10
parent
867956a843
commit
5691d2f47b
|
|
@ -29,6 +29,7 @@ add_qt_module(PrintSupport
|
|||
Qt::WidgetsPrivate
|
||||
PUBLIC_LIBRARIES # special case
|
||||
Qt::Gui
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:printsupport.pro:<NONE>:
|
||||
|
|
|
|||
Loading…
Reference in New Issue