@cryptotaxi247 / netdata-1 / commits / 435cf76e7

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.

Austin S. Hemmelgarn committed Jun 29, 2023 at 11:50 UTC 435cf76e736469ec02649b19095b225586f42f61
1 file changed +1 -1
configure.ac
+1 -1
@@ -434,7 +434,7 @@ if ! echo "${originalCFLAGS}" | grep -q '-D_FORTIFY_SOURCE'; then
434 [HAVE_FORTIFY_SOURCE=2]
435 )
436
437 - if test "x${HAVE_FORTIFY_SOURCE}" = "x2"; then
437 + if test "x${HAVE_FORTIFY_SOURCE}" = "x2" && echo "${originalCFLAGS}" | grep -qv '-O0'; then
438 AC_CHECK_DECL(
439 __builtin_dynamic_object_size,
440 [AX_CHECK_COMPILE_FLAG(