commit | 7bd4c5c339506c0ba5a64f525705542a0141f54e | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Thu Feb 23 17:52:24 2017 -0800 |
committer | Josh Gao <jmgao@google.com> | Thu Feb 23 17:57:03 2017 -0800 |
tree | ad4baf63536b8ef746f1a611d7c3981f9c6e9161 | |
parent | 3c776d1b74a4b96bf042f04f9fedf05c4fc9cfec [diff] [blame] |
Add libwinpthread, link it into win32 binaries. Bug: http://b/31665213 Test: wine adb.exe Test: wine fastboot.exe Change-Id: I6d6ff69f0c016e2654119a09161685841cbccc7e
diff --git a/cc/linker.go b/cc/linker.go index 4619926..07d9aa8 100644 --- a/cc/linker.go +++ b/cc/linker.go
@@ -156,6 +156,10 @@ } } + if ctx.Os() == android.Windows { + deps.LateStaticLibs = append(deps.LateStaticLibs, "libwinpthread") + } + return deps }