We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eba128 commit 81a8b20Copy full SHA for 81a8b20
llvm/cmake/config-ix.cmake
@@ -390,7 +390,14 @@ if (NOT PURE_WINDOWS)
390
if( HAVE_LIBDL )
391
list(APPEND CMAKE_REQUIRED_LIBRARIES dl)
392
endif()
393
+ # Add the _XOPEN_SOURCE macro on z/OS, as certain test(s) use dlopen
394
+ if (ZOS)
395
+ list(APPEND CMAKE_REQUIRED_DEFINITIONS "-D_XOPEN_SOURCE=600")
396
+ endif()
397
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
398
399
+ list(REMOVE_ITEM CMAKE_REQUIRED_DEFINITIONS "-D_XOPEN_SOURCE=600")
400
401
402
list(REMOVE_ITEM CMAKE_REQUIRED_LIBRARIES dl)
403
0 commit comments