CMake: wxUSE_VISIBILITY is non windows option now & -Wl,--exclude-libs=ALL has been added in MinGW case.
This commit is contained in:
@@ -44,13 +44,7 @@ if(MSVC)
|
||||
elseif(("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang"))
|
||||
if(wxBUILD_USE_STATIC_RUNTIME)
|
||||
if(MINGW)
|
||||
set(STATIC_LINKER_FLAGS " -static")
|
||||
set(EXCLUDED_LIBS gcc_eh
|
||||
pthread
|
||||
)
|
||||
foreach(lib ${EXCLUDED_LIBS})
|
||||
wx_string_append(STATIC_LINKER_FLAGS " -Wl,--exclude-libs=lib${lib}.a")
|
||||
endforeach()
|
||||
set(STATIC_LINKER_FLAGS " -static -Wl,--exclude-libs=ALL")
|
||||
else()
|
||||
set(STATIC_LINKER_FLAGS " -static-libgcc -static-libstdc++")
|
||||
endif()
|
||||
|
@@ -59,7 +59,9 @@ if(NOT WIN32)
|
||||
endif()
|
||||
|
||||
wx_option(wxUSE_COMPILER_TLS "enable use of compiler TLS support")
|
||||
wx_option(wxUSE_VISIBILITY "use of ELF symbols visibility")
|
||||
if(NOT WIN32)
|
||||
wx_option(wxUSE_VISIBILITY "use of ELF symbols visibility")
|
||||
endif()
|
||||
wx_option(wxUSE_UNSAFE_WXSTRING_CONV "provide unsafe implicit conversions in wxString to const char* or std::string")
|
||||
wx_option(wxUSE_REPRODUCIBLE_BUILD "enable reproducable build" OFF)
|
||||
|
||||
|
Reference in New Issue
Block a user