--- tools/CMakeLists.txt.orig 2014-06-27 02:51:21 UTC +++ tools/CMakeLists.txt @@ -60,6 +60,7 @@ endif() if( LLVM_ENABLE_PIC ) # TODO: support other systems: if( (CMAKE_SYSTEM_NAME STREQUAL "Linux") + OR (CMAKE_SYSTEM_NAME STREQUAL "BSDSUniX") OR (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") ) add_llvm_tool_subdirectory(gold) else()