1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-06 04:23:14 +00:00
nixpkgs/pkgs/os-specific/darwin/apple-sdk/security-setup-hook.sh

11 lines
339 B
Bash
Raw Normal View History

noDeprecatedDeclarations() {
# Security.framework has about 2000 deprecated constants, all of which the user will be
# warned about at compilation time
2015-10-29 20:55:58 +00:00
flag="-Wno-deprecated-declarations"
if [[ "${NIX_CFLAGS_COMPILE-}" != *$flag* ]]; then
2015-10-29 20:55:58 +00:00
NIX_CFLAGS_COMPILE+=" $flag"
fi
}
addEnvHooks "$hostOffset" noDeprecatedDeclarations