2019-06-17 14:09:06 -07:00
|
|
|
linkSystemCoreFoundationFramework() {
|
2019-11-07 14:17:41 -08:00
|
|
|
NIX_CFLAGS_COMPILE="-F@out@/Library/Frameworks${NIX_CFLAGS_COMPILE:+ }${NIX_CFLAGS_COMPILE-}"
|
2015-10-26 17:12:45 -07:00
|
|
|
# gross! many symbols (such as _OBJC_CLASS_$_NSArray) are defined in system CF, but not
|
|
|
|
# in the opensource release
|
|
|
|
# if the package needs private headers, we assume they also want to link with system CF
|
2020-09-18 01:12:43 -07:00
|
|
|
NIX_LDFLAGS+=" @out@/Library/Frameworks/CoreFoundation.framework/CoreFoundation"
|
2015-10-26 17:12:45 -07:00
|
|
|
}
|
|
|
|
|
2019-06-17 14:09:06 -07:00
|
|
|
preConfigureHooks+=(linkSystemCoreFoundationFramework)
|