Merge pull request #23263 from bfredl/notapple

fix(cmake): restore previously undocumented workround, now documented
This commit is contained in:
bfredl 2023-04-22 14:40:12 +02:00 committed by GitHub
commit d89eb71040
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,7 +197,8 @@ endif()
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
target_link_libraries(nvim PRIVATE -Wl,--no-undefined -lsocket)
else()
# workaround for clang-11 on macOS, supported on later versions:
elseif(NOT APPLE)
target_link_libraries(nvim PRIVATE -Wl,--no-undefined)
endif()