Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
build: fix add-on loading on freebsd
Browse files Browse the repository at this point in the history
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 acbfc40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions node.gyp
Expand Up @@ -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' ],
Expand Down

0 comments on commit acbfc40

Please sign in to comment.