Fix libgcc/libatomic link order
This is the equivalent commit to https://android-review.googlesource.com/144749 Change-Id: I79374f33766fa307fd031ffd0cbd9e9d37848324
This commit is contained in:
parent
ffce3fcf33
commit
edc385f5eb
1 changed files with 8 additions and 8 deletions
|
@ -302,6 +302,14 @@ func TransformObjToDynamicBinary(ctx common.AndroidModuleContext,
|
|||
|
||||
libFlagsList = append(libFlagsList, staticLibs...)
|
||||
|
||||
if groupLate && len(lateStaticLibs) > 0 {
|
||||
libFlagsList = append(libFlagsList, "-Wl,--start-group")
|
||||
}
|
||||
libFlagsList = append(libFlagsList, lateStaticLibs...)
|
||||
if groupLate && len(lateStaticLibs) > 0 {
|
||||
libFlagsList = append(libFlagsList, "-Wl,--end-group")
|
||||
}
|
||||
|
||||
for _, lib := range sharedLibs {
|
||||
dir, file := filepath.Split(lib)
|
||||
if !strings.HasPrefix(file, "lib") {
|
||||
|
@ -315,14 +323,6 @@ func TransformObjToDynamicBinary(ctx common.AndroidModuleContext,
|
|||
ldDirs = append(ldDirs, dir)
|
||||
}
|
||||
|
||||
if groupLate && len(lateStaticLibs) > 0 {
|
||||
libFlagsList = append(libFlagsList, "-Wl,--start-group")
|
||||
}
|
||||
libFlagsList = append(libFlagsList, lateStaticLibs...)
|
||||
if groupLate && len(lateStaticLibs) > 0 {
|
||||
libFlagsList = append(libFlagsList, "-Wl,--end-group")
|
||||
}
|
||||
|
||||
deps = append(deps, ldCmd)
|
||||
deps = append(deps, sharedLibs...)
|
||||
deps = append(deps, staticLibs...)
|
||||
|
|
Loading…
Reference in a new issue