Fix dladdr1 and dl_find_object tests

This commit is contained in:
Jeremy 2024-06-11 22:22:52 -05:00
parent b8a6e8446a
commit 4456623391
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4
2 changed files with 3 additions and 2 deletions

View File

@ -93,9 +93,9 @@ if(NOT WIN32 OR MINGW)
endif() endif()
if(UNIX AND NOT APPLE) if(UNIX AND NOT APPLE)
check_support(HAS_DL_FIND_OBJECT has_dl_find_object.cpp "" "" "") check_support(HAS_DL_FIND_OBJECT has_dl_find_object.cpp "" "dl" "")
if(NOT HAS_DL_FIND_OBJECT) if(NOT HAS_DL_FIND_OBJECT)
check_support(HAS_DLADDR1 has_dladdr1.cpp "" "" "") check_support(HAS_DLADDR1 has_dladdr1.cpp "" "dl" "")
endif() endif()
endif() endif()

View File

@ -1,4 +1,5 @@
#include <dlfcn.h> #include <dlfcn.h>
#include <link.h>
int main() { int main() {
Dl_info info; Dl_info info;