Skip to content

Commit c1f756f

Browse files
authored
Disable LTO to avoid missing symbols in some envs (#415)
LTO may not always work correctly, for whatever reason, resulting in e.g. > node_modules/argon2/build/Release/argon2.node: undefined symbol: argon2_ctx Removing LTO seems to be fine, and resolves the above issue.
1 parent 2afef9c commit c1f756f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

binding.gyp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"Release": {
2121
"target_conditions": [
2222
["OS != 'win'", {
23-
"cflags+": ["-fdata-sections", "-ffunction-sections", "-flto", "-fvisibility=hidden"],
23+
"cflags+": ["-fdata-sections", "-ffunction-sections", "-fvisibility=hidden"],
2424
"ldflags+": ["-Wl,--gc-sections"]
2525
}]
2626
],

0 commit comments

Comments
 (0)