Commit 338ab0df authored by Jesse Chan's avatar Jesse Chan Committed by Luigi Pinca
Browse files

build: preserves symbols during LTO with macOS linker



man ld -export_dynamic:

```
Preserves all global symbols in main executables during LTO.

Without this option, Link Time Optimization is allowed to inline
and remove global functions.

This option is used when a main executable may load a plug-in which
requires certain symbols from the main executable.
```

Bug: vercel/pkg#1155
Signed-off-by: default avatarJesse Chan <jc@linux.com>

PR-URL: https://github.com/nodejs/node/pull/39839


Reviewed-By: default avatarLuigi Pinca <luigipinca@gmail.com>
Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent f26c2ce0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment