Revert "Revert "Switch libcompiler_rt-extras to LateStaticLibs.""
This reverts commit 15e4554049
.
Change-Id: Iff62dd9fd45746847440f50240c25d32747367df
This commit is contained in:
@@ -369,11 +369,11 @@ func TransformObjToDynamicBinary(ctx android.ModuleContext,
|
|||||||
|
|
||||||
libFlagsList = append(libFlagsList, staticLibs.Strings()...)
|
libFlagsList = append(libFlagsList, staticLibs.Strings()...)
|
||||||
|
|
||||||
if groupLate && len(lateStaticLibs) > 0 {
|
if groupLate && !ctx.Darwin() && len(lateStaticLibs) > 0 {
|
||||||
libFlagsList = append(libFlagsList, "-Wl,--start-group")
|
libFlagsList = append(libFlagsList, "-Wl,--start-group")
|
||||||
}
|
}
|
||||||
libFlagsList = append(libFlagsList, lateStaticLibs.Strings()...)
|
libFlagsList = append(libFlagsList, lateStaticLibs.Strings()...)
|
||||||
if groupLate && len(lateStaticLibs) > 0 {
|
if groupLate && !ctx.Darwin() && len(lateStaticLibs) > 0 {
|
||||||
libFlagsList = append(libFlagsList, "-Wl,--end-group")
|
libFlagsList = append(libFlagsList, "-Wl,--end-group")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
cc/cc.go
2
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...)
|
deps.ReexportSharedLibHeaders = append(deps.ReexportSharedLibHeaders, linker.Properties.Export_shared_lib_headers...)
|
||||||
|
|
||||||
if !ctx.sdk() && ctx.ModuleName() != "libcompiler_rt-extras" {
|
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() {
|
if ctx.Device() {
|
||||||
|
Reference in New Issue
Block a user