ahmadsamir added a comment.
In D27518#643466 <https://phabricator.kde.org/D27518#643466>, @sitter wrote: > FYI linking a library without actually using any symbols is not going to do anything in practice because many distros link with --as-needed which undoes unnecessary linking. also see https://markmail.org/message/m3mdrsfgxoyfjtte Yes, some distros do that indeed (the ones I am sure of are Mandriva, Mageia, OpenSuse); IINM, a, hacky, way to find out when compiling is to omit the entry from target_link_libraries(), if the compilation succeeds, then it's not NEEDED, and we needn't add it. REPOSITORY R124 System Settings REVISION DETAIL https://phabricator.kde.org/D27518 To: ahmadsamir, #plasma, apol Cc: sitter, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart