Don't force libraries upon static executables. am: dc2597d25a
am: 48e5befbdc
Change-Id: I2c4c7644ea43b06753f9c62e741e2c88dea07df2
This commit is contained in:
commit
50cc75da63
|
@ -131,7 +131,7 @@ func (binary *binaryDecorator) linkerDeps(ctx DepsContext, deps Deps) Deps {
|
|||
}
|
||||
|
||||
if binary.static() {
|
||||
if inList("libc++_static", deps.StaticLibs) {
|
||||
if ctx.selectedStl() == "libc++_static" {
|
||||
deps.StaticLibs = append(deps.StaticLibs, "libm", "libc", "libdl")
|
||||
}
|
||||
// static libraries libcompiler_rt, libc and libc_nomalloc need to be linked with
|
||||
|
|
Loading…
Reference in New Issue