Skip to content
Permalink
Browse files

Only allow dynamic X11 if gcc4 (-fvisibility=hidden) is used.

 Fixes Bugzilla #242.
  • Loading branch information
icculus committed Jun 23, 2006
1 parent 4a7159b commit 76745c79f0a0f5a1a215db868e048c606403a379
Showing with 8 additions and 0 deletions.
  1. +8 −0 configure.in
@@ -876,7 +876,15 @@ AC_HELP_STRING([--enable-x11-shared], [dynamically load X11 support [[default=ye
if test x$have_loadso != xyes && \
test x$enable_x11_shared = xyes; then
AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic X11 loading])
enable_x11_shared=no
fi

if test x$have_gcc_fvisibility != xyes && \
test x$enable_x11_shared = xyes; then
AC_MSG_WARN([You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading])
enable_x11_shared=no
fi

if test x$have_loadso = xyes && \
test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
echo "-- dynamic libX11 -> $x11_lib"

0 comments on commit 76745c7

Please sign in to comment.