8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
9 lines
498 B
Bash
9 lines
498 B
Bash
linkSystemCoreFoundationFramework() {
|
|
NIX_CFLAGS_COMPILE="-F@out@/Library/Frameworks${NIX_CFLAGS_COMPILE:+ }${NIX_CFLAGS_COMPILE-}"
|
|
# 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
|
|
NIX_LDFLAGS+=" /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation"
|
|
}
|
|
|
|
preConfigureHooks+=(linkSystemCoreFoundationFramework)
|