diff --git a/common.gypi b/common.gypi index 3542f86f5e..1dbef02f97 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"', {