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:
parent
c78e4f33a3
commit
3443da216f
@ -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'
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user