mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
046f091e0d
This commits needs a MAJOR audit as I oftentimes just guessed which of `$hostOffset`, `$targetOffset`, or a fixed offset should be used.
10 lines
336 B
Bash
10 lines
336 B
Bash
noDeprecatedDeclarations() {
|
|
# Security.framework has about 2000 deprecated constants, all of which the user will be
|
|
# warned about at compilation time
|
|
flag="-Wno-deprecated-declarations"
|
|
if [[ "$NIX_CFLAGS_COMPILE" != *$flag* ]]; then
|
|
NIX_CFLAGS_COMPILE+=" $flag"
|
|
fi
|
|
}
|
|
|
|
addEnvHooks "$hostOffset" noDeprecatedDeclarations
|