From fa1c0457f82fa072a80b2134b404e2ec23edf29a Mon Sep 17 00:00:00 2001 From: Amit Prakash Ambasta Date: Mon, 15 May 2023 13:35:28 +0530 Subject: [PATCH] gcc 13 patch, fixes segfault on node w/ gcc 13 Details: https://github.com/nodejs/node/issues/47865 Signed-off-by: Amit Prakash Ambasta --- configure.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.py b/configure.py index 83a6faea..77dac73e 100755 --- a/configure.py +++ b/configure.py @@ -1313,6 +1313,9 @@ def configure_node(o): raise Exception( 'The pgo option is supported only on linux.') + if gcc_version_ge((13,1,0)): + o['cflags'] += ['-fno-ipa-icf'] + if flavor == 'linux': if options.enable_pgo_generate or options.enable_pgo_use: version_checked = (5, 4, 1) -- 2.40.1