Browse Source

build: link with -rdynamic, not -Wl,--export-dynamic

The system linker on SunOS doesn't understand --export-dynamic.
v0.8.7-release
Ben Noordhuis 12 years ago
parent
commit
5a5e128165
  1. 5
      common.gypi
  2. 1
      node.gyp

5
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' ],

1
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' ],

Loading…
Cancel
Save