Merge pull request #174709 from FliegendeWurst/fortran-format-security

cc-wrapper: Fortran: disable format hardening
This commit is contained in:
Anderson Torres 2022-06-08 22:32:47 -03:00 committed by GitHub
commit 78028df447
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -492,6 +492,8 @@ stdenv.mkDerivation {
hardening_unsupported_flags+=" format stackprotector strictoverflow" hardening_unsupported_flags+=" format stackprotector strictoverflow"
'' + optionalString cc.langD or false '' '' + optionalString cc.langD or false ''
hardening_unsupported_flags+=" format" hardening_unsupported_flags+=" format"
'' + optionalString cc.langFortran or false ''
hardening_unsupported_flags+=" format"
'' + optionalString targetPlatform.isWasm '' '' + optionalString targetPlatform.isWasm ''
hardening_unsupported_flags+=" stackprotector fortify pie pic" hardening_unsupported_flags+=" stackprotector fortify pie pic"
'' ''