mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
cc-wrapper: disable stackprotector for mingw
It seems to break things.
This commit is contained in:
parent
680957d8b2
commit
4f6d61e5cf
1 changed files with 4 additions and 0 deletions
|
@ -280,6 +280,10 @@ stdenv.mkDerivation {
|
|||
hardening_unsupported_flags+=" pic"
|
||||
''
|
||||
|
||||
+ optionalString targetPlatform.isMinGW ''
|
||||
hardening_unsupported_flags+=" stackprotector"
|
||||
''
|
||||
|
||||
+ ''
|
||||
substituteAll ${./add-flags.sh} $out/nix-support/add-flags.sh
|
||||
substituteAll ${./add-hardening.sh} $out/nix-support/add-hardening.sh
|
||||
|
|
Loading…
Reference in a new issue