patches: apply nodejs/node#39839 for vercel/pkg#1155
This commit is contained in:
parent
d0e97881d6
commit
19ddcec2ba
@ -646,3 +646,25 @@ index 0000000000..fb2d47f52b
|
||||
'cflags_cc!': [ '-fno-rtti' ],
|
||||
}],
|
||||
[ 'OS == "mac" or OS == "ios"', {
|
||||
--- node/node.gyp
|
||||
+++ node/node.gyp
|
||||
@@ -236,6 +236,19 @@
|
||||
'OTHER_LDFLAGS': [ '-Wl,-rpath,@loader_path', ],
|
||||
},
|
||||
}],
|
||||
+ [ 'enable_lto=="true"', {
|
||||
+ 'xcode_settings': {
|
||||
+ 'OTHER_LDFLAGS': [
|
||||
+ # 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.
|
||||
+ '-Wl,-export_dynamic',
|
||||
+ ],
|
||||
+ },
|
||||
+ }],
|
||||
['OS=="win"', {
|
||||
'libraries': [
|
||||
'Dbghelp.lib',
|
||||
|
||||
@ -523,3 +523,25 @@ index 0000000000..fb2d47f52b
|
||||
'cflags_cc!': [ '-fno-rtti' ],
|
||||
}],
|
||||
[ 'OS == "mac" or OS == "ios"', {
|
||||
--- node/node.gyp
|
||||
+++ node/node.gyp
|
||||
@@ -236,6 +236,19 @@
|
||||
'OTHER_LDFLAGS': [ '-Wl,-rpath,@loader_path', ],
|
||||
},
|
||||
}],
|
||||
+ [ 'enable_lto=="true"', {
|
||||
+ 'xcode_settings': {
|
||||
+ 'OTHER_LDFLAGS': [
|
||||
+ # 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.
|
||||
+ '-Wl,-export_dynamic',
|
||||
+ ],
|
||||
+ },
|
||||
+ }],
|
||||
['OS=="win"', {
|
||||
'libraries': [
|
||||
'Dbghelp.lib',
|
||||
|
||||
@ -487,3 +487,25 @@ index 0000000000..fb2d47f52b
|
||||
'cflags_cc!': [ '-fno-rtti' ],
|
||||
}],
|
||||
[ 'OS == "mac" or OS == "ios"', {
|
||||
--- node/node.gyp
|
||||
+++ node/node.gyp
|
||||
@@ -236,6 +236,19 @@
|
||||
'OTHER_LDFLAGS': [ '-Wl,-rpath,@loader_path', ],
|
||||
},
|
||||
}],
|
||||
+ [ 'enable_lto=="true"', {
|
||||
+ 'xcode_settings': {
|
||||
+ 'OTHER_LDFLAGS': [
|
||||
+ # 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.
|
||||
+ '-Wl,-export_dynamic',
|
||||
+ ],
|
||||
+ },
|
||||
+ }],
|
||||
['OS=="win"', {
|
||||
'libraries': [
|
||||
'Dbghelp.lib',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user