diff options
author | Nathan Rajlich <nathan@tootallnate.net> | 2012-02-26 06:51:30 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-02-27 05:28:06 +0400 |
commit | 3c68c85f182758132b1c07a9ab7da5119306a54b (patch) | |
tree | 47724f6ffdf00fcf2bee86f65cbf3c0a6643c02e /common.gypi | |
parent | 2d7b43f466c85cdb1cea1d01ab68a908d63b9977 (diff) |
build: use -pthreads (not -pthread) on Solaris
Diffstat (limited to 'common.gypi')
-rw-r--r-- | common.gypi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common.gypi b/common.gypi index 3542f86f5ed..1dbef02f972 100644 --- a/common.gypi +++ b/common.gypi @@ -139,6 +139,12 @@ 'cflags': [ '-ansi' ], 'ldflags': [ '-rdynamic' ], }], + [ 'OS=="solaris"', { + 'cflags': [ '-pthreads' ], + 'ldflags': [ '-pthreads' ], + 'cflags!': [ '-pthread' ], + 'ldflags!': [ '-pthread' ], + }], ], }], ['OS=="mac"', { |