Skip to content

Commit

Permalink
Merge pull request #4017 from bentley/openbsd-libs
Browse files Browse the repository at this point in the history
OpenBSD neither provides nor requires libdl and librt.
  • Loading branch information
Parlane committed Jul 18, 2016
2 parents c23d38c + eb4cae7 commit 4b9173c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ if(ANDROID)
# We are cross compiling, search only the toolchain for libraries and includes
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
elseif(NOT APPLE)
elseif(NOT APPLE AND NOT CMAKE_SYSTEM_NAME MATCHES OpenBSD)
list(APPEND LIBS rt)
endif()

Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ elseif(USE_X11)
set(LIBS ${LIBS} ${XRANDR_LIBRARIES})
endif()

if(NOT CMAKE_SYSTEM_NAME MATCHES FreeBSD)
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(LIBS ${LIBS} dl)
endif()

Expand Down
2 changes: 1 addition & 1 deletion Source/Core/DolphinWX/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ endif()

set(WXLIBS ${wxWidgets_LIBRARIES})

if(NOT CMAKE_SYSTEM_NAME MATCHES FreeBSD)
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(WXLIBS ${WXLIBS} dl)
endif()

Expand Down

0 comments on commit 4b9173c

Please sign in to comment.