dbus/m4
Simon McVittie 7d214f4d58 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>
2015-02-20 20:49:41 +00:00
..
as-ac-expand.m4 Split acinclude.m4 into separate files in m4/ 2011-02-17 18:21:16 +00:00
compiler.m4 Assign default value to enable compiler coverage 2013-06-06 13:05:38 +01:00
pkg.m4 Split acinclude.m4 into separate files in m4/ 2011-02-17 18:21:16 +00:00
tp-compiler-flag.m4 Import tp-compiler-flag.m4 and tp-compiler-warnings.m4 from telepathy-glib 2011-05-25 16:56:45 +01:00
tp-compiler-warnings.m4 Import tp-compiler-flag.m4 and tp-compiler-warnings.m4 from telepathy-glib 2011-05-25 16:56:45 +01:00
visibility.m4 On Unix platforms with gcc (or compatible), hide non-exported symbols 2015-02-20 20:49:41 +00:00