build: link with -rdynamic, not -Wl,--export-dynamic
authorBen Noordhuis <info@bnoordhuis.nl>
Wed, 18 Jul 2012 22:08:35 +0000 (00:08 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Wed, 18 Jul 2012 22:08:37 +0000 (00:08 +0200)
The system linker on SunOS doesn't understand --export-dynamic.

common.gypi
node.gyp

index 6661166..2d8d17c 100644 (file)
       [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
         'cflags': [ '-Wall', '-pthread', ],
         'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ],
-        'ldflags': [ '-pthread', ],
+        'ldflags': [ '-pthread', '-rdynamic' ],
         'conditions': [
           [ 'target_arch=="ia32"', {
             'cflags': [ '-m32' ],
             'cflags': [ '-m64' ],
             'ldflags': [ '-m64' ],
           }],
-          [ 'OS=="linux"', {
-            'ldflags': [ '-rdynamic' ],
-          }],
           [ 'OS=="solaris"', {
             'cflags': [ '-pthreads' ],
             'ldflags': [ '-pthreads' ],
index c365dfc..4b6c83f 100644 (file)
--- a/node.gyp
+++ b/node.gyp
             'src/node_signal_watcher.cc',
             'src/node_io_watcher.cc',
           ],
-          'ldflags': [ '-Wl,--export-dynamic' ],
         }],
         [ 'OS=="mac"', {
           'libraries': [ '-framework Carbon' ],