aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2016-03-03 19:24:03 -0800
committerDan Willemsen <dwillemsen@google.com>2016-03-03 19:24:03 -0800
commitb955336d33c1bca8c3a79bf716ca873540cd9a7b (patch)
treebbe001fcc92c3864f86620483b791797ca0f696d
parent99db8c30c1ddeda07c9580fa836c4cb557ab331e (diff)
downloadbuild_soong-b955336d33c1bca8c3a79bf716ca873540cd9a7b.tar.gz
build_soong-b955336d33c1bca8c3a79bf716ca873540cd9a7b.tar.bz2
build_soong-b955336d33c1bca8c3a79bf716ca873540cd9a7b.zip
Swap -lm and -lpthread for host libc++ users
Match the order we use in make. Change-Id: I7959f72841bd058b13d6c8fc6efb3c78b5de9d35
-rw-r--r--cc/cc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/cc.go b/cc/cc.go
index eb9c58fd..d79cdbee 100644
--- a/cc/cc.go
+++ b/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 {