fix(cmake): restore previously undocumented workround, now documented

This commit is contained in:
bfredl 2023-04-22 14:17:30 +02:00
parent 669030ec08
commit e51e524175

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()