0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +08:00

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