Various host flag updates to match Make
Some of these are updates from the old build system, others are just
differences/bugs being corrected.
Change-Id: Ied7f47ade495dcb26ba3611e636869cba283860f
diff --git a/cc/x86_linux_host.go b/cc/x86_linux_host.go
index 528d2a7..e05d2a5 100644
--- a/cc/x86_linux_host.go
+++ b/cc/x86_linux_host.go
@@ -68,13 +68,14 @@
linuxClangCflags = append(clangFilterUnknownCflags(linuxCflags), []string{
"--gcc-toolchain=${linuxGccRoot}",
- "--sysroot=${linuxGccRoot}/sysroot",
+ "--sysroot ${linuxGccRoot}/sysroot",
"-fstack-protector-strong",
}...)
linuxClangLdflags = append(clangFilterUnknownCflags(linuxLdflags), []string{
"--gcc-toolchain=${linuxGccRoot}",
- "--sysroot=${linuxGccRoot}/sysroot",
+ "--sysroot ${linuxGccRoot}/sysroot",
+ "-B${linuxGccRoot}/${linuxGccTriple}/bin",
}...)
linuxX86ClangLdflags = append(clangFilterUnknownCflags(linuxX86Ldflags), []string{