mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 18:55:10 +01: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"', {
|
[ 'OS=="mac"', {
|
||||||
'defines': [
|
'defines': [
|
||||||
'ZMQ_HAVE_OSX'
|
'ZMQ_HAVE_OSX'
|
||||||
]
|
],
|
||||||
|
'xcode_settings': {
|
||||||
|
'GCC_ENABLE_CPP_RTTI': 'YES'
|
||||||
|
}
|
||||||
}],
|
}],
|
||||||
[ 'OS=="linux"', {
|
[ 'OS=="linux"', {
|
||||||
'defines': [
|
'defines': [
|
||||||
'ZMQ_HAVE_LINUX'
|
'ZMQ_HAVE_LINUX'
|
||||||
],
|
],
|
||||||
|
'cflags_cc!': [
|
||||||
|
'-fno-rtti'
|
||||||
|
],
|
||||||
'libraries': [
|
'libraries': [
|
||||||
'-lpthread'
|
'-lpthread'
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user