config: remove incorrectly implemented visibility compiler option

CFLAGS is a user variable which should never be set by the configuration.
It allows the user to alter the configuration compiler options.

The visibility is only set for GNU compiler, leaving libraries built
with other compilers with the wrong visibility.

All other xorg libraries set visibilty using _X_EXPORT or _X_HIDDEN.

For the time being, all the symbols will have the default visibility
which does not break anything.

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
master
Gaetan Nadon 2010-12-08 20:37:26 -05:00
parent ec3fbfdf6d
commit bf9fdceef6
1 changed files with 0 additions and 4 deletions

View File

@ -65,10 +65,6 @@ if test "x$CC_FOR_BUILD" = x; then
fi fi
fi fi
if test "x$GCC" = xyes ; then
CFLAGS="$CFLAGS -fvisibility=hidden"
fi
# Obtain protocols headers include directives # Obtain protocols headers include directives
PKG_CHECK_MODULES([X11], [xproto kbproto >= 1.0.5]) PKG_CHECK_MODULES([X11], [xproto kbproto >= 1.0.5])