macOS: GNU toolchain: ensure framework, marked as SYSTEM, can be linked

Fixes: #25263
7 files changed