Based on Swift CoreFoundation from https://github.com/apple/swift-corelibs-foundation/tree/master/CoreFoundation.
Modified to work (more or less) when installed in a PureDarwin image.
(If you just want binary roots to add to a PureDarwin image, look here.)
CFURLSession
and dependency on libcurl
(and everything that depends on)CFInitialize()
at load time, so things actually workCFFileDescriptor
CFMachPort
(ie. the fact the actual mach code was missing)libxml2
(eg from the Darwin 10.10 roots)Create a folder called "include" at the same level as this README.md (and the CoreFoundation folder) and copy into it:
/usr/local/include/unicode
folder from your macOS systemmach-o
folder from the dyld Darwin rootinclude
folder from libxml2
bootstrap_priv.h
CFRunLoopGetCurrent()
is called either before CFRunLoopGetMain()
on the main thread, or at all on any other thread.