summaryrefslogtreecommitdiff
path: root/bus/Makefile.am
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2015-02-20 14:46:46 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2015-02-20 20:49:41 +0000
commit7d214f4d5855c43a7aa0bec385d93e4a67a09f5f (patch)
treece285b1cedc072ada72c3dae5173345135481800 /bus/Makefile.am
parent6bcf34d4c24d7c690aff01269d8575289f901728 (diff)
downloaddbus-7d214f4d5855c43a7aa0bec385d93e4a67a09f5f.tar.gz
dbus-7d214f4d5855c43a7aa0bec385d93e4a67a09f5f.tar.bz2
dbus-7d214f4d5855c43a7aa0bec385d93e4a67a09f5f.zip
On Unix platforms with gcc (or compatible), hide non-exported symbols
This changes the Linux behaviour to match the default situation on Windows: symbols without DBUS_EXPORT or DBUS_PRIVATE_EXPORT decoration are internal to libdbus-1, and cannot be used by other programs, even within the dbus source tree. This means the compiler/linker can optimize calls to those functions by avoiding indirection through the PLT, which should improve performance a little. However, the primary purpose of doing this is that it means developers building libdbus on Linux are considerably less likely to break it on Windows by mistake. I'm deliberately not adding -fvisbility=hidden in CMake because the complexity of doing so is unnecessary: Autotools is the recommended way to build dbus for Unix, and the one Unix developers are going to use in practice, unless they are specifically checking that they haven't broken the CMake build. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=83115 Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
Diffstat (limited to 'bus/Makefile.am')
0 files changed, 0 insertions, 0 deletions