Add -lm to the default libs for Linux & Darwin

libm is a default library for device builds, so default it for host
builds as well.

Also removes duplicate additions of -ldl, -lpthread, -lm and -lrt.

Test: m host
Change-Id: I6a07e12053090eb6997b79d4091c28ac9a9022de
This commit is contained in:
Dan Willemsen
2017-09-26 20:26:11 -07:00
parent b182ea7bcb
commit a3a06feeed
5 changed files with 2 additions and 12 deletions

View File

@@ -18,9 +18,4 @@ cc_binary_host {
"makeparallel.cpp",
],
cflags: ["-Wall", "-Werror"],
target: {
linux: {
host_ldlibs: ["-lrt", "-lpthread"],
},
},
}