From e49241090dd1c1193d6decbc3d3c72e77d09c204 Mon Sep 17 00:00:00 2001 From: jjrv Date: Mon, 29 May 2017 16:08:37 +0300 Subject: [PATCH] Add symbol needed by ancient Node.js versions on OS X. --- src/nbind.gypi | 6 ++++-- src/symbols.txt | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 src/symbols.txt diff --git a/src/nbind.gypi b/src/nbind.gypi index 6c21a64..b525e97 100644 --- a/src/nbind.gypi +++ b/src/nbind.gypi @@ -51,6 +51,9 @@ }, { + "copies": [{"destination": "<(INTERMEDIATE_DIR)", "files": ["symbols.txt"]}], + "symbols_path": "<(INTERMEDIATE_DIR)/symbols.txt", + "sources": [ "v8/Buffer.cc", "v8/Binding.cc" @@ -84,8 +87,7 @@ ], "OTHER_LDFLAGS": [ "-stdlib=libc++", - "-exported_symbols_list", - "/dev/null" + "-exported_symbols_list", "<(_symbols_path)" ] } diff --git a/src/symbols.txt b/src/symbols.txt new file mode 100644 index 0000000..f623f08 --- /dev/null +++ b/src/symbols.txt @@ -0,0 +1 @@ +_nbind_module