aboutsummaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2017-02-23 17:52:24 -0800
committerJosh Gao <jmgao@google.com>2017-02-23 17:57:03 -0800
commit7bd4c5c339506c0ba5a64f525705542a0141f54e (patch)
treead4baf63536b8ef746f1a611d7c3981f9c6e9161 /cc
parent3c776d1b74a4b96bf042f04f9fedf05c4fc9cfec (diff)
downloadbuild_soong-7bd4c5c339506c0ba5a64f525705542a0141f54e.tar.gz
build_soong-7bd4c5c339506c0ba5a64f525705542a0141f54e.tar.bz2
build_soong-7bd4c5c339506c0ba5a64f525705542a0141f54e.zip
Add libwinpthread, link it into win32 binaries.
Bug: http://b/31665213 Test: wine adb.exe Test: wine fastboot.exe Change-Id: I6d6ff69f0c016e2654119a09161685841cbccc7e
Diffstat (limited to 'cc')
-rw-r--r--cc/linker.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cc/linker.go b/cc/linker.go
index 46199269..07d9aa80 100644
--- a/cc/linker.go
+++ b/cc/linker.go
@@ -156,6 +156,10 @@ func (linker *baseLinker) linkerDeps(ctx BaseModuleContext, deps Deps) Deps {
}
}
+ if ctx.Os() == android.Windows {
+ deps.LateStaticLibs = append(deps.LateStaticLibs, "libwinpthread")
+ }
+
return deps
}