diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2023-06-29 11:50:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-29 18:50:24 +0300 |
commit | 435cf76e736469ec02649b19095b225586f42f61 (patch) | |
tree | cf925b3c200c5496827f66e5b60354ef4860fd21 /configure.ac | |
parent | fd5dcfd1210a1537a563f20a027bd3cf917e2814 (diff) |
Only try to enable _FORTIFY_SOURCE if the user has not disabled optimizations (#15284)
Only try to enable _FORTIFY_SOURCE if the user has not disabled optimizations.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 053ff6775b..393f497671 100644 --- a/configure.ac +++ b/configure.ac @@ -434,7 +434,7 @@ if ! echo "${originalCFLAGS}" | grep -q '-D_FORTIFY_SOURCE'; then [HAVE_FORTIFY_SOURCE=2] ) - if test "x${HAVE_FORTIFY_SOURCE}" = "x2"; then + if test "x${HAVE_FORTIFY_SOURCE}" = "x2" && echo "${originalCFLAGS}" | grep -qv '-O0'; then AC_CHECK_DECL( __builtin_dynamic_object_size, [AX_CHECK_COMPILE_FLAG( |