Build breakage on MacOS - one fixed, one not.


In getting my MC6809-targeting compiler to work, I've run into a couple of MacOS/Darwin snags.

This one I fixed a while back:

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5f424ed9ab0..e4173533697 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -882,6 +882,13 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "(FreeBSD|DragonFly)")
endif(${CMAKE_SYSTEM_NAME} MATCHES "(FreeBSD|DragonFly)")

+ # On MacOS, /opt/local/* is not used by default. In order to build LLVM
+ # with libxml2, iconv.h, etc., we must add /opt/local paths.
+ include_directories(SYSTEM "/opt/local/include")
+ link_directories("/opt/local/lib")
+endif(${CMAKE_SYSTEM_NAME} MATCHES "(Darwin)")