Revert \"Revert \"Switch libcompiler_rt-extras to LateStaticLibs.\"\"
am: 1034786c37
Change-Id: I14b765d0cc76748f2a30925170da53d49ba7d2f4
This commit is contained in:
@@ -369,11 +369,11 @@ func TransformObjToDynamicBinary(ctx android.ModuleContext,
|
||||
|
||||
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, lateStaticLibs.Strings()...)
|
||||
if groupLate && len(lateStaticLibs) > 0 {
|
||||
if groupLate && !ctx.Darwin() && len(lateStaticLibs) > 0 {
|
||||
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...)
|
||||
|
||||
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() {
|
||||
|
Reference in New Issue
Block a user