Merge "Fix mac build"

This commit is contained in:
Treehugger Robot 2016-12-06 04:39:00 +00:00 committed by Gerrit Code Review
commit b278a58325
1 changed files with 2 additions and 2 deletions

View File

@ -466,11 +466,11 @@ func TransformObjToDynamicBinary(ctx android.ModuleContext,
}
}
if flags.groupStaticLibs && len(staticLibs) > 0 {
if flags.groupStaticLibs && !ctx.Darwin() && len(staticLibs) > 0 {
libFlagsList = append(libFlagsList, "-Wl,--start-group")
}
libFlagsList = append(libFlagsList, staticLibs.Strings()...)
if flags.groupStaticLibs && len(staticLibs) > 0 {
if flags.groupStaticLibs && !ctx.Darwin() && len(staticLibs) > 0 {
libFlagsList = append(libFlagsList, "-Wl,--end-group")
}