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 | |
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
-rw-r--r-- | m4/check-hardening-options.m4 | 4 | ||||
-rw-r--r-- | tests/Makefile.am | 2 |
2 files changed, 5 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]]) |
diff --git a/tests/Makefile.am b/tests/Makefile.am index 8ce338f..f43bd85 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am | |||
@@ -172,9 +172,11 @@ check_PROGRAMS += dsatest | |||
172 | dsatest_SOURCES = dsatest.c | 172 | dsatest_SOURCES = dsatest.c |
173 | 173 | ||
174 | # dtlstest | 174 | # dtlstest |
175 | if !HOST_WIN | ||
175 | TESTS += dtlstest.sh | 176 | TESTS += dtlstest.sh |
176 | check_PROGRAMS += dtlstest | 177 | check_PROGRAMS += dtlstest |
177 | dtlstest_SOURCES = dtlstest.c | 178 | dtlstest_SOURCES = dtlstest.c |
179 | endif | ||
178 | EXTRA_DIST += dtlstest.sh | 180 | EXTRA_DIST += dtlstest.sh |
179 | 181 | ||
180 | # ec_point_conversion | 182 | # ec_point_conversion |