diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-07-19 00:08:35 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-07-19 00:08:37 +0200 |
commit | 5a5e128165e85e15843f21d4ca01c8765323b030 (patch) | |
tree | e29055548b945a2e16314677642a44f8561cd03b /common.gypi | |
parent | 98b1ce91f6ab65b88b759e7ada18133b9257b203 (diff) | |
download | node-5a5e128165e85e15843f21d4ca01c8765323b030.tar.gz |
build: link with -rdynamic, not -Wl,--export-dynamic
The system linker on SunOS doesn't understand --export-dynamic.
Diffstat (limited to 'common.gypi')
-rw-r--r-- | common.gypi | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/common.gypi b/common.gypi index 6661166cb..2d8d17c0d 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' ], |