well, back to this... I now have an fpc.cfg, and it has an entry in it for -XR pointing to the relevant command line SDK, which does exist. And I remove it, I get "Error: ld: framework not found Cocoa". So I think the compiler is seeing it, but I still get "Error: ld: library not found for -lc". Is there a way to get the command line passed to ld?