From 3443da216f4773a1e28373c481b0bc611655b48a Mon Sep 17 00:00:00 2001 From: Pieter Hintjens Date: Sat, 13 Feb 2016 11:19:40 +0100 Subject: [PATCH] Problem: node-gyp defaults to -fno-rtti, which breaks libzmq Solution: override in project.gyp, for Linux and OS/X. --- builds/gyp/project.gyp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/builds/gyp/project.gyp b/builds/gyp/project.gyp index 37130338..58c0a105 100644 --- a/builds/gyp/project.gyp +++ b/builds/gyp/project.gyp @@ -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' ]