macOS, GNU toolchain: unable to link with target framework when SYSTEM property is true
MR !8758 (merged) add the support of SYSTEM frameworks by specifying option -iframework
rather than -F
for compile and link steps.
Unfortunately, GNU compilers do not propagate this option to the linker, which prevents correct link: frameworks are no longer founded. For information, AppleClang
delivers option -F
to the linker when the option iframework
is specified.
So, the obvious solution is to provide option -F
for the link step regardless the SYSTEM target property.