]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Build with -fvisibility=hidden by default 11178/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 13 Jan 2022 12:00:30 +0000 (13:00 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 13 Jan 2022 12:00:30 +0000 (13:00 +0100)
commit58234eaeae607a7b98c885861c254dfd301fda65
tree4f337f925b52ae2d7bb434e6c58081b35e02c419
parent5ee20b026caddd865c9d9c1a04962b9af8bfe81c
dnsdist: Build with -fvisibility=hidden by default

Not marking our symbols visible by default allows the compiler to do
better optimizations, especially with Link-Time Optimizations that
several distributions are now enabling by default.
The most obvious optimization comes from dead code removal because
the compiler now knows that it cannot be used by an external shared
object, but better inlining might also occur.
Even without LTO, it reduces the final size of stripped binaries and
might improve loading times a bit.

Note that we already mark the symbols that we want to export with the
'default' visibilty, for example for Lua FFI.
pdns/dnsdistdist/configure.ac