summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2016-01-03 16:12:21 -0800
committerJan Kotas <jkotas@microsoft.com>2016-01-03 16:12:21 -0800
commit215fb944857693e3bcc372d684b4ab2aa98d00cc (patch)
tree4692fbf3e73f6027dd81df25aa0441b0505beff1 /src
parent8c7e7db8ca4f231b4b82c2c06990520efd2e7ee1 (diff)
parent44ce49211382594729a6801c45ccea457ac6452d (diff)
downloadcoreclr-215fb944857693e3bcc372d684b4ab2aa98d00cc.tar.gz
coreclr-215fb944857693e3bcc372d684b4ab2aa98d00cc.tar.bz2
coreclr-215fb944857693e3bcc372d684b4ab2aa98d00cc.zip
Merge pull request #2498 from taylorjonl/smartos
Fixed issue where files in /opt/local/include are not found and LTTng is required on SmartOS
Diffstat (limited to 'src')
-rw-r--r--src/pal/src/configure.cmake24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/pal/src/configure.cmake b/src/pal/src/configure.cmake
index d130e14123..a210a8e055 100644
--- a/src/pal/src/configure.cmake
+++ b/src/pal/src/configure.cmake
@@ -9,7 +9,10 @@ include(CheckLibraryExists)
if(CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
set(CMAKE_REQUIRED_INCLUDES /usr/local/include)
-elseif(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
+elseif(CMAKE_SYSTEM_NAME STREQUAL SunOS)
+ set(CMAKE_REQUIRED_INCLUDES /opt/local/include)
+endif()
+if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin AND NOT CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
set(CMAKE_REQUIRED_DEFINITIONS "-D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L")
endif()
@@ -941,6 +944,25 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
message(FATAL_ERROR "Cannot find libc on this system.")
endif()
+elseif(CMAKE_SYSTEM_NAME STREQUAL SunOS)
+ if(NOT HAVE_LIBUNWIND_H)
+ unset(HAVE_LIBUNWIND_H CACHE)
+ message(FATAL_ERROR "Cannot find libunwind. Try installing libunwind8 and libunwind8-dev (or the appropriate packages for your platform)")
+ endif()
+ if(NOT HAVE_LIBUUID_H)
+ unset(HAVE_LIBUUID_H CACHE)
+ message(FATAL_ERROR "Cannot find libuuid. Try installing uuid-dev or the appropriate packages for your platform")
+ endif()
+ set(DEADLOCK_WHEN_THREAD_IS_SUSPENDED_WHILE_BLOCKED_ON_MUTEX 0)
+ set(PAL_PTRACE "ptrace((cmd), (pid), (caddr_t)(addr), (data))")
+ set(PAL_PT_ATTACH PT_ATTACH)
+ set(PAL_PT_DETACH PT_DETACH)
+ set(PAL_PT_READ_D PT_READ_D)
+ set(PAL_PT_WRITE_D PT_WRITE_D)
+ set(JA_JP_LOCALE_NAME ja_JP_LOCALE_NOT_FOUND)
+ set(KO_KR_LOCALE_NAME ko_KR_LOCALE_NOT_FOUND)
+ set(ZH_TW_LOCALE_NAME zh_TW_LOCALE_NOT_FOUND)
+ set(HAS_FTRUNCATE_LENGTH_ISSUE 0)
else() # Anything else is Linux
if(NOT HAVE_LIBUNWIND_H)
unset(HAVE_LIBUNWIND_H CACHE)