Skip to content

Commit

Permalink
Problem: node-gyp defaults to -fno-rtti, which breaks libzmq
Browse files Browse the repository at this point in the history
Solution: override in project.gyp, for Linux and OS/X.
  • Loading branch information
hintjens committed Feb 17, 2016
1 parent c78e4f3 commit 3443da2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion builds/gyp/project.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,18 @@
[ 'OS=="mac"', {
'defines': [
'ZMQ_HAVE_OSX'
]
],
'xcode_settings': {
'GCC_ENABLE_CPP_RTTI': 'YES'
}
}],
[ 'OS=="linux"', {
'defines': [
'ZMQ_HAVE_LINUX'
],
'cflags_cc!': [
'-fno-rtti'
],
'libraries': [
'-lpthread'
]
Expand Down

0 comments on commit 3443da2

Please sign in to comment.