Only allow dynamic X11 if gcc4 (-fvisibility=hidden) is used.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 23 Jun 2006 02:19:52 +0000
changeset 18754627eca2c02b
parent 1874 9e85b267f8f3
child 1876 406b8325ee34
Only allow dynamic X11 if gcc4 (-fvisibility=hidden) is used.
Fixes Bugzilla #242.
configure.in
     1.1 --- a/configure.in	Fri Jun 23 02:16:49 2006 +0000
     1.2 +++ b/configure.in	Fri Jun 23 02:19:52 2006 +0000
     1.3 @@ -876,7 +876,15 @@
     1.4              if test x$have_loadso != xyes && \
     1.5                 test x$enable_x11_shared = xyes; then
     1.6                  AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic X11 loading])
     1.7 +                enable_x11_shared=no
     1.8              fi
     1.9 +
    1.10 +            if test x$have_gcc_fvisibility != xyes && \
    1.11 +               test x$enable_x11_shared = xyes; then
    1.12 +                AC_MSG_WARN([You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading])
    1.13 +                enable_x11_shared=no
    1.14 +            fi
    1.15 +
    1.16              if test x$have_loadso = xyes && \
    1.17                 test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
    1.18                  echo "-- dynamic libX11 -> $x11_lib"