aboutsummaryrefslogtreecommitdiffstats
path: root/cc/cc.go
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2016-07-18 13:25:36 -0700
committerStephen Hines <srhines@google.com>2016-07-18 13:33:25 -0700
commitbb7473dd1a5423c62178d9271ce6a103f08561bd (patch)
treed6db407e48d2220fd62e722599d1942ad1e45df7 /cc/cc.go
parent3d92b27717f7c995ac1f63ec6ffba7d03b8bd46b (diff)
downloadbuild_soong-bb7473dd1a5423c62178d9271ce6a103f08561bd.tar.gz
build_soong-bb7473dd1a5423c62178d9271ce6a103f08561bd.tar.bz2
build_soong-bb7473dd1a5423c62178d9271ce6a103f08561bd.zip
Switch libcompiler_rt-extras to LateStaticLibs.
Bug: http://b/28149048 Test: Rebuild world (and check on new clang dependencies). The latest clang inserts even more dependencies for libcompiler_rt-extras (in the form of __unorddf2/__unordtf2), so we need to ensure that it gets linked after libm.a for binaries that statically pull it in. Change-Id: I22a1deb63a7ed05f77af6f91f0f7a21dcf156608
Diffstat (limited to 'cc/cc.go')
-rw-r--r--cc/cc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/cc.go b/cc/cc.go
index f8723bb1..89f40b34 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -1337,7 +1337,7 @@ func (linker *baseLinker) deps(ctx BaseModuleContext, deps Deps) Deps {
deps.ReexportSharedLibHeaders = append(deps.ReexportSharedLibHeaders, linker.Properties.Export_shared_lib_headers...)
if !ctx.sdk() && ctx.ModuleName() != "libcompiler_rt-extras" {
- deps.StaticLibs = append(deps.StaticLibs, "libcompiler_rt-extras")
+ deps.LateStaticLibs = append(deps.LateStaticLibs, "libcompiler_rt-extras")
}
if ctx.Device() {