qBittorrent/cmake/Modules
Chocobo1 50680a3d9b
Set symbol visibility to hidden
This suppresses compiler warnings in GHA CI:
>ld: warning: direct access in function 'std::__1::__function::__func<libtorrent::storage_interface* (*)(libtorrent::storage_params const&, libtorrent::file_pool&), std::__1::allocator<libtorrent::storage_interface* (*)(libtorrent::storage_params const&, libtorrent::file_pool&)>, libtorrent::storage_interface* (libtorrent::storage_params const&, libtorrent::file_pool&)>::target(std::type_info const&) const' from file '/usr/local/lib/libtorrent-rasterbar.a(create_torrent.cpp.o)' to global weak symbol 'typeinfo name for libtorrent::storage_interface* (*)(libtorrent::storage_params const&, libtorrent::file_pool&)' from file 'src/base/libqbt_base.a(mocs_compilation.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.

And also makes the binary a bit smaller.

https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/Code-Gen-Options.html#index-fvisibility

PR #19921.
2023-11-14 14:07:04 +08:00
..
CheckPackages.cmake Drop support of Qt 5 2023-07-20 11:17:27 +03:00
CommonConfig.cmake Set symbol visibility to hidden 2023-11-14 14:07:04 +08:00
FeatureOptionsSetup.cmake CMake: overhaul and improve scripts 2020-09-17 13:13:26 +01:00
FindQtTranslations.cmake CMake: Use installed Qt's translations for packaging 2022-03-29 01:52:23 +03:00
FindSystemd.cmake CMake: overhaul and improve scripts 2020-09-17 13:13:26 +01:00