diff options
author | Brent Cook <busterb@gmail.com> | 2021-05-30 17:53:02 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2021-05-30 17:53:02 -0500 |
commit | c8911ede68dc33a19e540b0c1026d3cbfb0067d3 (patch) | |
tree | 1cbcb419f8f93aa4e18221127c2c47c10692e463 /m4 | |
parent | b25111c22da96c839bad46cfbd49e030a3b03fb2 (diff) | |
parent | e07b5feba5103e662016158a2d77ca6bf1db12fb (diff) | |
download | portable-c8911ede68dc33a19e540b0c1026d3cbfb0067d3.tar.gz portable-c8911ede68dc33a19e540b0c1026d3cbfb0067d3.tar.bz2 portable-c8911ede68dc33a19e540b0c1026d3cbfb0067d3.zip |
Land #674, fix mingw builds with newer compiler versions
Diffstat (limited to 'm4')
-rw-r--r-- | m4/check-hardening-options.m4 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/m4/check-hardening-options.m4 b/m4/check-hardening-options.m4 index 869f00b..c8ab12e 100644 --- a/m4/check-hardening-options.m4 +++ b/m4/check-hardening-options.m4 | |||
@@ -73,7 +73,9 @@ AC_DEFUN([CHECK_C_HARDENING_OPTIONS], [ | |||
73 | CHECK_CFLAG([[-fno-strict-overflow]]) | 73 | CHECK_CFLAG([[-fno-strict-overflow]]) |
74 | 74 | ||
75 | # _FORTIFY_SOURCE replaces builtin functions with safer versions. | 75 | # _FORTIFY_SOURCE replaces builtin functions with safer versions. |
76 | AX_ADD_FORTIFY_SOURCE | 76 | AS_IF([test "x$HOST_OS" != "xwin"], [ |
77 | AX_ADD_FORTIFY_SOURCE | ||
78 | ]) | ||
77 | 79 | ||
78 | # Enable read only relocations | 80 | # Enable read only relocations |
79 | CHECK_LDFLAG([[-Wl,-z,relro]]) | 81 | CHECK_LDFLAG([[-Wl,-z,relro]]) |