diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2011-01-29 14:06:39 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2011-01-29 14:11:36 -0500 |
commit | dd0e8b70fb11a19887f8d05d1ed0c10921424a43 (patch) | |
tree | b5de3779627a70625f218b2699470341bcd120e8 | |
parent | 621c2a7a8c4a14a5ddfdd6add735b78efd950f2b (diff) | |
download | xorg-lib-libxkbcommon-dd0e8b70fb11a19887f8d05d1ed0c10921424a43.tar.gz |
Revert "config: remove incorrectly implemented visibility compiler option"
This reverts commit bf9fdceef63507da889a22eb1a583d2b6376f5ea.
We really only want to expose symbols that we explicitly mark as part of
the API. This may not work with other platforms or compilers, but the
fact that private symbols are not available on Linux+GCC is enough of an
incentive to not use those.
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 0026441..6b695b9 100644 --- a/configure.ac +++ b/configure.ac @@ -65,6 +65,10 @@ if test "x$CC_FOR_BUILD" = x; then fi fi +if test "x$GCC" = xyes ; then + CFLAGS="$CFLAGS -fvisibility=hidden" +fi + # Obtain protocols headers include directives PKG_CHECK_MODULES([X11], [xproto kbproto >= 1.0.5]) |