diff options
author | Dan Willemsen <dwillemsen@google.com> | 2016-03-03 19:24:03 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2016-03-03 19:24:03 -0800 |
commit | b955336d33c1bca8c3a79bf716ca873540cd9a7b (patch) | |
tree | bbe001fcc92c3864f86620483b791797ca0f696d /cc/cc.go | |
parent | 99db8c30c1ddeda07c9580fa836c4cb557ab331e (diff) | |
download | build_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
Diffstat (limited to 'cc/cc.go')
-rw-r--r-- | cc/cc.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |