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"', {