···11-linkSystemCoreFoundationFramework() {
22- NIX_CFLAGS_COMPILE="-F@out@/Library/Frameworks${NIX_CFLAGS_COMPILE:+ }${NIX_CFLAGS_COMPILE-}"
33- # gross! many symbols (such as _OBJC_CLASS_$_NSArray) are defined in system CF, but not
44- # in the opensource release
55- # if the package needs private headers, we assume they also want to link with system CF
66- NIX_LDFLAGS+=" @out@/Library/Frameworks/CoreFoundation.framework/CoreFoundation.tbd"
77-}
88-99-preConfigureHooks+=(linkSystemCoreFoundationFramework)
···11-noDeprecatedDeclarations() {
22- # Security.framework has about 2000 deprecated constants, all of which the user will be
33- # warned about at compilation time
44- flag="-Wno-deprecated-declarations"
55- if [[ "${NIX_CFLAGS_COMPILE-}" != *$flag* ]]; then
66- NIX_CFLAGS_COMPILE+=" $flag"
77- fi
88-}
99-1010-addEnvHooks "$hostOffset" noDeprecatedDeclarations