···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"
7-}
8-9-preConfigureHooks+=(linkSystemCoreFoundationFramework)
···1-noDeprecatedDeclarations() {
2- # Security.framework has about 2000 deprecated constants, all of which the user will be
3- # warned about at compilation time
4- flag="-Wno-deprecated-declarations"
5- if [[ "${NIX_CFLAGS_COMPILE-}" != *$flag* ]]; then
6- NIX_CFLAGS_COMPILE+=" $flag"
7- fi
8-}
9-10-addEnvHooks "$hostOffset" noDeprecatedDeclarations