From 0349deca9e836fa5143802daeb24453ad8041f01 Mon Sep 17 00:00:00 2001 From: Brian Robbins Date: Sun, 4 Dec 2016 20:16:29 -0800 Subject: [PATCH] Fix building against liblttng-ust-dev 2.8+ Commit migrated from https://github.com/dotnet/coreclr/commit/cb2b31a94d817cadac14c421bc90739bd66e1bb2 --- src/coreclr/src/pal/src/configure.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/coreclr/src/pal/src/configure.cmake b/src/coreclr/src/pal/src/configure.cmake index f4b83bc..a53e0db 100644 --- a/src/coreclr/src/pal/src/configure.cmake +++ b/src/coreclr/src/pal/src/configure.cmake @@ -33,7 +33,15 @@ check_include_files(sys/lwp.h HAVE_SYS_LWP_H) check_include_files(lwp.h HAVE_LWP_H) check_include_files(libunwind.h HAVE_LIBUNWIND_H) check_include_files(runetype.h HAVE_RUNETYPE_H) + +if(NOT CMAKE_SYSTEM_NAME STREQUAL FreeBSD AND NOT CMAKE_SYSTEM_NAME STREQUAL NetBSD) + set(CMAKE_REQUIRED_FLAGS "-ldl") +endif() check_include_files(lttng/tracepoint.h HAVE_LTTNG_TRACEPOINT_H) +if(NOT CMAKE_SYSTEM_NAME STREQUAL FreeBSD AND NOT CMAKE_SYSTEM_NAME STREQUAL NetBSD) + unset(CMAKE_REQUIRED_FLAGS) +endif() + check_include_files(uuid/uuid.h HAVE_LIBUUID_H) check_include_files(sys/sysctl.h HAVE_SYS_SYSCTL_H) check_include_files(gnu/lib-names.h HAVE_GNU_LIBNAMES_H) -- 2.7.4