1 linkSystemCoreFoundationFramework
() {
2 NIX_CFLAGS_COMPILE
="-F@out@/Library/Frameworks${NIX_CFLAGS_COMPILE:+ }${NIX_CFLAGS_COMPILE-}"
3 # gross! many symbols (such as _OBJC_CLASS_$_NSArray) are defined in system CF, but not
4 # in the opensource release
5 # if the package needs private headers, we assume they also want to link with system CF
6 NIX_LDFLAGS
+=" @out@/Library/Frameworks/CoreFoundation.framework/CoreFoundation.tbd"
9 preConfigureHooks
+=(linkSystemCoreFoundationFramework
)