Skip to content

Commit

Permalink
Use ${CMAKE_DL_LIBS} rather than listing OSes.
Browse files Browse the repository at this point in the history
CMake makes our lives easier. Needed for NetBSD, which also
doesn't have libdl.so.
  • Loading branch information
coypoop committed Aug 2, 2018
1 parent 87820d9 commit 443e656
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/arch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,5 @@ add_library(arch STATIC ${sources})

if (UNIX)
target_link_libraries(arch ${libs})
if (NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
target_link_libraries(arch dl)
endif()
target_link_libraries(arch ${CMAKE_DL_LIBS})
endif()

0 comments on commit 443e656

Please sign in to comment.