Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMakeLists: Build library with -fvisibility=protected
This reduces the number of dynamic relocs by nearly 50%. Unfortunately doing so causes errors like: /usr/bin/ld: CMakeFiles/dbus-asio.dir/src/dbus_auth.cpp.o: relocation R_X86_64_PC32 against protected symbol `_ZN4DBus22AuthenticationProtocol4onOKERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE' can not be used when making a shared object when linking with ld.bfd. Let's use gold instead, which doesn't suffer from that problem.
- Loading branch information