cc-wrapper: disable stackprotector for mingw

It seems to break things.
This commit is contained in:
Matthew Bauer 2018-06-23 22:05:26 -04:00
parent 680957d8b2
commit 4f6d61e5cf

View File

@ -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