Priority: P2: Important
Affects Version/s: 6.2.1, 6.3
Fix Version/s: None
Component/s: Build System: CMake
When configuring Qt with -sanitize address, we use ECMEnableSanitizers.cmake to add sanitizer support.
which adds an -lasan flag to all built Qt libs.
Accidentally, that adds those flags to the prl files too.
Those -lasan link flags get added to apps when they are built with qmake and link against Qt6Core.
But qmake has it's own sanitizer.prf that handles sanitizer flags that need to be added.
As such, we should NOT record those -lasan flags in the .prl files of modules. It could lead to issues with linking the wrong library. And usually fsanitize-address takes care of linking the proper libs.