Mercurial > hgrepos > Python > libs > ConfigMix
changeset 590:91e74fb1ea90
Enable the stack-protector (or /GS)
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 09 Jan 2022 14:14:54 +0100 |
| parents | 87db5a732797 |
| children | 1b48ec3d6489 |
| files | windows-dev/Configure.py |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/windows-dev/Configure.py Sun Jan 09 13:52:05 2022 +0100 +++ b/windows-dev/Configure.py Sun Jan 09 14:14:54 2022 +0100 @@ -278,6 +278,7 @@ ccflags.append("/MD") # link to dll runtime #ccflags.append("/EHsc") # no C++ here ccflags.append("/Gy") # enable function level linking + ccflags.append("/GS") # enable the stack protector -fstack-protector ccflags.append("/O2") # XXX TBD machine @@ -318,8 +319,7 @@ ccflags.append("-ffunction-sections") ccflags.append("-fdata-sections") ccflags.append("-fno-strict-aliasing") - - if tool.clang: + ccflags.append("-fstack-protector") ccflags.append("-faddrsig") # use with --icf=all/safe when linking ldflags.append("-shared")
