From 5a5e128165e85e15843f21d4ca01c8765323b030 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 19 Jul 2012 00:08:35 +0200 Subject: [PATCH] build: link with -rdynamic, not -Wl,--export-dynamic The system linker on SunOS doesn't understand --export-dynamic. --- common.gypi | 5 +---- node.gyp | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/common.gypi b/common.gypi index 6661166..2d8d17c 100644 --- a/common.gypi +++ b/common.gypi @@ -148,7 +148,7 @@ [ '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' ], @@ -158,9 +158,6 @@ 'cflags': [ '-m64' ], 'ldflags': [ '-m64' ], }], - [ 'OS=="linux"', { - 'ldflags': [ '-rdynamic' ], - }], [ 'OS=="solaris"', { 'cflags': [ '-pthreads' ], 'ldflags': [ '-pthreads' ], diff --git a/node.gyp b/node.gyp index c365dfc..4b6c83f 100644 --- a/node.gyp +++ b/node.gyp @@ -206,7 +206,6 @@ 'src/node_signal_watcher.cc', 'src/node_io_watcher.cc', ], - 'ldflags': [ '-Wl,--export-dynamic' ], }], [ 'OS=="mac"', { 'libraries': [ '-framework Carbon' ], -- 2.7.4