build: linking CoreFoundation framework for OSX
authorThorsten Lorenz <thlorenz@gmx.de>
Wed, 6 Aug 2014 18:00:31 +0000 (14:00 -0400)
committerFedor Indutny <fedor@indutny.com>
Fri, 8 Aug 2014 14:03:04 +0000 (18:03 +0400)
Linking CoreFoundation for OSX is needed for OSX debugging features to
function properly.

For instance Instruments cannot record Heap Allocations if the
CoreFoundation is not linked.

Reviewed-By: Fedor Indutny <fedor@indutny.com>
node.gyp

index c6aebf4..c3b7660 100644 (file)
--- a/node.gyp
+++ b/node.gyp
           'defines': [ '__POSIX__' ],
         }],
         [ 'OS=="mac"', {
+          # linking Corefoundation is needed since certain OSX debugging tools
+          # like Instruments require it for some features
+          'libraries': [ '-framework CoreFoundation' ],
           'defines!': [
             'PLATFORM="mac"',
           ],