aboutsummaryrefslogtreecommitdiff
path: root/m4/check-hardening-options.m4
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2020-08-20 02:18:39 -0500
committerBrent Cook <busterb@gmail.com>2020-08-22 18:42:26 -0500
commit56202472bfcac0a161745afb6906968e4fd723be (patch)
tree5b80e3016666d288e62f687e313fbb3c1d3deb76 /m4/check-hardening-options.m4
parentd9b4363a5f710adee4bc75ec3f75477f8a46fccf (diff)
downloadportable-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.m42
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]])