Problem: node-gyp defaults to -fno-rtti, which breaks libzmq

Solution: override in project.gyp, for Linux and OS/X.
This commit is contained in:
Pieter Hintjens 2016-02-13 11:19:40 +01:00
parent c78e4f33a3
commit 3443da216f

View File

@ -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'
]