Skip to content

Commit

Permalink
Only allow dynamic X11 if gcc4 (-fvisibility=hidden) is used.
Browse files Browse the repository at this point in the history
 Fixes Bugzilla #242.
  • Loading branch information
icculus committed Jun 23, 2006
1 parent 4a7159b commit 76745c7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions configure.in
Expand Up @@ -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"
Expand Down

0 comments on commit 76745c7

Please sign in to comment.