Skip to content

Commit 91d83c3

Browse files
authored
build: remove redundant -fuse-linker-plugin from GCC LTO flags
The `-fuse-linker-plugin` flag has been automatically enabled by GCC since version 5 when LTO is active, making the explicit flag redundant. Since Node.js requires GCC >= 13.2, this flag serves no purpose. Removing it also improves portability with alternative linkers (mold, lld) that may not support GCC's linker plugin interface, avoiding build failures when these linkers are used with GCC LTO builds. Refs: yao-pkg/pkg#231 Signed-off-by: Daniel Lando <daniel.sorridi@gmail.com> PR-URL: #62667 Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent eed4f83 commit 91d83c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
['clang==1', {
190190
'lto': ' -flto ', # Clang
191191
}, {
192-
'lto': ' -flto=4 -fuse-linker-plugin -ffat-lto-objects ', # GCC
192+
'lto': ' -flto=4 -ffat-lto-objects ', # GCC
193193
}],
194194
],
195195
},

0 commit comments

Comments
 (0)