diff options
author | Brent Cook <busterb@gmail.com> | 2020-08-20 02:18:39 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2020-08-22 18:42:26 -0500 |
commit | 56202472bfcac0a161745afb6906968e4fd723be (patch) | |
tree | 5b80e3016666d288e62f687e313fbb3c1d3deb76 /m4/check-hardening-options.m4 | |
parent | d9b4363a5f710adee4bc75ec3f75477f8a46fccf (diff) | |
download | portable-56202472bfcac0a161745afb6906968e4fd723be.tar.gz portable-56202472bfcac0a161745afb6906968e4fd723be.tar.bz2 portable-56202472bfcac0a161745afb6906968e4fd723be.zip |
Add a compile-time check for FORTIFY_SOURCE support
This is broken on some platforms, so pull in the conditional macro from
the latest version of autoconf-archive to test for working support.
Diffstat (limited to 'm4/check-hardening-options.m4')
-rw-r--r-- | m4/check-hardening-options.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/check-hardening-options.m4 b/m4/check-hardening-options.m4 index 3ffdb1a..869f00b 100644 --- a/m4/check-hardening-options.m4 +++ b/m4/check-hardening-options.m4 | |||
@@ -73,7 +73,7 @@ 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 | CHECK_CFLAG([[-D_FORTIFY_SOURCE=2]]) | 76 | AX_ADD_FORTIFY_SOURCE |
77 | 77 | ||
78 | # Enable read only relocations | 78 | # Enable read only relocations |
79 | CHECK_LDFLAG([[-Wl,-z,relro]]) | 79 | CHECK_LDFLAG([[-Wl,-z,relro]]) |