-fvisibility=hidden is no longer a requirement for dynamic X11.
We don't clash with Xlib symbols anymore. --HG-- extra : rebase_source : 0efa50cb3e047dbfb0bdf0fd804a86c819305b83
This commit is contained in:
parent
337a61cc3a
commit
a047b562eb
2 changed files with 1 additions and 24 deletions
|
@ -331,15 +331,8 @@ macro(CheckX11)
|
|||
set(SOURCE_FILES ${SOURCE_FILES} ${X11_SOURCES})
|
||||
set(SDL_VIDEO_DRIVER_X11 1)
|
||||
|
||||
if(HAVE_GCC_FVISIBILITY)
|
||||
set(X11_SYMBOLS_PRIVATE TRUE)
|
||||
else()
|
||||
set(X11_SYMBOLS_PRIVATE FALSE)
|
||||
endif(HAVE_GCC_FVISIBILITY)
|
||||
|
||||
if(APPLE)
|
||||
set(X11_SHARED OFF)
|
||||
set(X11_SYMBOLS_PRIVATE TRUE)
|
||||
endif(APPLE)
|
||||
|
||||
check_function_exists("shmat" HAVE_SHMAT)
|
||||
|
@ -358,10 +351,6 @@ macro(CheckX11)
|
|||
if(NOT HAVE_DLOPEN)
|
||||
message_warn("You must have SDL_LoadObject() support for dynamic X11 loading")
|
||||
set(HAVE_X11_SHARED FALSE)
|
||||
if(X11_SYMBOLS_PRIVATE)
|
||||
message_warn("You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading")
|
||||
set(HAVE_X11_SHARED TRUE)
|
||||
endif(X11_SYMBOLS_PRIVATE)
|
||||
else(NOT HAVE_DLOPEN)
|
||||
set(HAVE_X11_SHARED TRUE)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue