It took me several minutes of google the title in various ways before I stumbled upon a way to add frameworks to a C/C++/ObjC application compiling on the command line with clang.
The magic flag you want is
-framework CoreFoundation (replace CoreFoundation
with whatever framework you want).
That is all.