Skip to content

Commit 4456623

Browse files
committed
Fix dladdr1 and dl_find_object tests
1 parent b8a6e84 commit 4456623

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ if(NOT WIN32 OR MINGW)
9393
endif()
9494

9595
if(UNIX AND NOT APPLE)
96-
check_support(HAS_DL_FIND_OBJECT has_dl_find_object.cpp "" "" "")
96+
check_support(HAS_DL_FIND_OBJECT has_dl_find_object.cpp "" "dl" "")
9797
if(NOT HAS_DL_FIND_OBJECT)
98-
check_support(HAS_DLADDR1 has_dladdr1.cpp "" "" "")
98+
check_support(HAS_DLADDR1 has_dladdr1.cpp "" "dl" "")
9999
endif()
100100
endif()
101101

cmake/has_dladdr1.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <dlfcn.h>
2+
#include <link.h>
23

34
int main() {
45
Dl_info info;

0 commit comments

Comments
 (0)