build: use -pthreads (not -pthread) on Solaris
authorNathan Rajlich <nathan@tootallnate.net>
Sun, 26 Feb 2012 02:51:30 +0000 (18:51 -0800)
committerBen Noordhuis <info@bnoordhuis.nl>
Mon, 27 Feb 2012 01:28:06 +0000 (02:28 +0100)
common.gypi

index 3542f86..1dbef02 100644 (file)
             'cflags': [ '-ansi' ],
             'ldflags': [ '-rdynamic' ],
           }],
+          [ 'OS=="solaris"', {
+            'cflags': [ '-pthreads' ],
+            'ldflags': [ '-pthreads' ],
+            'cflags!': [ '-pthread' ],
+            'ldflags!': [ '-pthread' ],
+          }],
         ],
       }],
       ['OS=="mac"', {