Revert "config: remove incorrectly implemented visibility compiler option"
authorKristian Høgsberg <krh@bitplanet.net>
Sat, 29 Jan 2011 19:06:39 +0000 (14:06 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Sat, 29 Jan 2011 19:11:36 +0000 (14:11 -0500)
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>
configure.ac

index 0026441..6b695b9 100644 (file)
@@ -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])