Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

build: fix add-on loading on freebsd

Link with -Wl,--export-dynamic, makes symbols from the node binary visible to
binary add-ons.

Fixes "undefined symbol: _ZN2v811HandleScopeC1Ev" errors when loading add-ons
on FreeBSD and likely other BSDs.

Fixes #3623.
  • Loading branch information...
bnoordhuis committed Jul 12, 2012
1 parent 713b924 commit acbfc408880a12c32ccc9d69bca91aad4e93e879
Showing with 3 additions and 2 deletions.
  1. +3 −2 node.gyp
@@ -200,12 +200,13 @@
'_UNICODE=1',
],
'libraries': [ '-lpsapi.lib' ]
},{ # POSIX
}, { # POSIX
'defines': [ '__POSIX__' ],
'sources': [
'src/node_signal_watcher.cc',
'src/node_io_watcher.cc',
]
],
'ldflags': [ '-Wl,--export-dynamic' ],
}],
[ 'OS=="mac"', {
'libraries': [ '-framework Carbon' ],

0 comments on commit acbfc40

Please sign in to comment.
You can’t perform that action at this time.