Swap -lm and -lpthread for host libc++ users
Match the order we use in make. Change-Id: I7959f72841bd058b13d6c8fc6efb3c78b5de9d35
This commit is contained in:
2
cc/cc.go
2
cc/cc.go
@@ -938,7 +938,7 @@ func (c *CCLinked) flags(ctx common.AndroidModuleContext, flags CCFlags) CCFlags
|
||||
if ctx.Host() {
|
||||
flags.CppFlags = append(flags.CppFlags, "-nostdinc++")
|
||||
flags.LdFlags = append(flags.LdFlags, "-nodefaultlibs")
|
||||
flags.LdFlags = append(flags.LdFlags, "-lm", "-lpthread")
|
||||
flags.LdFlags = append(flags.LdFlags, "-lpthread", "-lm")
|
||||
if c.staticBinary() {
|
||||
flags.LdFlags = append(flags.LdFlags, hostStaticGccLibs[ctx.HostType()]...)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user