Skip to content

Commit

Permalink
Only try to enable _FORTIFY_SOURCE if the user has not disabled optim…
Browse files Browse the repository at this point in the history
…izations (netdata#15284)

Only try to enable _FORTIFY_SOURCE if the user has not disabled optimizations.
  • Loading branch information
Ferroin committed Jun 29, 2023
1 parent fd5dcfd commit 435cf76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 435cf76

Please sign in to comment.