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 1875 4627eca2c02b
parent 1874 9e85b267f8f3
child 1876 406b8325ee34
Only allow dynamic X11 if gcc4 (-fvisibility=hidden) is used. Fixes Bugzilla #242.
configure.in
--- a/configure.in	Fri Jun 23 02:16:49 2006 +0000
+++ b/configure.in	Fri Jun 23 02:19:52 2006 +0000
@@ -876,7 +876,15 @@
             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"