$NetBSD: patch-CMakeLists.txt,v 1.1 2018/01/08 10:48:34 jperkin Exp $ Don't implement sys/regset.h workaround, fix source instead. --- CMakeLists.txt.orig 2017-08-15 00:16:21.000000000 +0000 +++ CMakeLists.txt @@ -809,7 +809,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "(Fre if( ${CMAKE_SYSTEM_NAME} MATCHES SunOS ) # special hack for Solaris to handle crazy system sys/regset.h - include_directories("${LLVM_MAIN_INCLUDE_DIR}/llvm/Support/Solaris") + #include_directories("${LLVM_MAIN_INCLUDE_DIR}/llvm/Support/Solaris") endif( ${CMAKE_SYSTEM_NAME} MATCHES SunOS ) # Make sure we don't get -rdynamic in every binary. For those that need it,