summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-07-19 00:08:35 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2012-07-19 00:08:37 +0200
commit5a5e128165e85e15843f21d4ca01c8765323b030 (patch)
treee29055548b945a2e16314677642a44f8561cd03b
parent98b1ce91f6ab65b88b759e7ada18133b9257b203 (diff)
downloadnode-new-5a5e128165e85e15843f21d4ca01c8765323b030.tar.gz
build: link with -rdynamic, not -Wl,--export-dynamic
The system linker on SunOS doesn't understand --export-dynamic.
-rw-r--r--common.gypi5
-rw-r--r--node.gyp1
2 files changed, 1 insertions, 5 deletions
diff --git a/common.gypi b/common.gypi
index 6661166cbb..2d8d17c0da 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 c365dfc8a3..4b6c83fc8a 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' ],