Index: third_party/libc++/libc++.gyp |
diff --git a/third_party/libc++/libc++.gyp b/third_party/libc++/libc++.gyp |
index c6011de4498b6cdd4bf2a53be0c7ae1e7847aa37..7422d10fc206e2abff91376a31aaf3a651d4f3f0 100644 |
--- a/third_party/libc++/libc++.gyp |
+++ b/third_party/libc++/libc++.gyp |
@@ -88,8 +88,10 @@ |
'../libc++abi/trunk/include', |
], |
'cflags': [ |
+ '-fPIC', |
'-fstrict-aliasing', |
'-nostdinc++', |
+ '-pthread', |
'-std=c++11', |
], |
'cflags_cc!': [ |
@@ -103,14 +105,14 @@ |
'-nodefaultlibs', |
], |
'ldflags!': [ |
- # This somehow causes a warning from clang about an unused compilation |
- # option. Use '-lpthread' instead. |
- # TODO(earthdok): find out what's causing the warning. |
+ # -nodefaultlibs turns -pthread into a no-op, causing an unused argument |
+ # warning. Explicitly link with -lpthread instead. |
'-pthread', |
], |
'libraries': [ |
'-lc', |
'-lgcc_s', |
+ '-lm', |
'-lpthread', |
'-lrt', |
], |