Merge "Add more allowed ldlibs for darwin and windows"

This commit is contained in:
Treehugger Robot 2016-07-20 21:22:17 +00:00 committed by Gerrit Code Review
commit ff3a2e4d55
2 changed files with 15 additions and 0 deletions

View File

@ -81,6 +81,7 @@ var (
"c",
"dl",
"m",
"ncurses",
"pthread",
"z",
}, "-l")

View File

@ -76,6 +76,16 @@ var (
"-m64",
"-L${windowsGccRoot}/${windowsGccTriple}/lib64",
}
windowsAvailableLibraries = addPrefix([]string{
"gdi32",
"imagehlp",
"ole32",
"psapi",
"userenv",
"uuid",
"ws2_32",
}, "-l")
)
const (
@ -187,6 +197,10 @@ func (t *toolchainWindows) ExecutableSuffix() string {
return ".exe"
}
func (t *toolchainWindows) AvailableLibraries() []string {
return windowsAvailableLibraries
}
var toolchainWindowsX86Singleton Toolchain = &toolchainWindowsX86{}
var toolchainWindowsX8664Singleton Toolchain = &toolchainWindowsX8664{}