15 lines
515 B
Diff
15 lines
515 B
Diff
diff --git a/node.gyp b/node.gyp
|
|
index 5abbad6c6f..460e4f1a86 100644
|
|
--- a/node.gyp
|
|
+++ b/node.gyp
|
|
@@ -417,6 +417,9 @@
|
|
[ 'node_shared=="true"', {
|
|
'node_target_type%': 'shared_library',
|
|
'conditions': [
|
|
+ ['target_arch=="arm64"', {
|
|
+ 'cflags': ['-msign-return-address=all'], # Pointer authentication.
|
|
+ }],
|
|
['OS in "aix os400"', {
|
|
# For AIX, always generate static library first,
|
|
# It needs an extra step to generate exp and
|