summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cc/binary.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/binary.go b/cc/binary.go
index 24c99185d..b423c50ae 100644
--- a/cc/binary.go
+++ b/cc/binary.go
@@ -212,7 +212,7 @@ func NewBinary(hod android.HostOrDeviceSupported) (*Module, *binaryDecorator) {
func (binary *binaryDecorator) linkerInit(ctx BaseModuleContext) {
binary.baseLinker.linkerInit(ctx)
- if !ctx.toolchain().Bionic() {
+ if !ctx.toolchain().Bionic() && !ctx.toolchain().Musl() {
if ctx.Os() == android.Linux {
// Unless explicitly specified otherwise, host static binaries are built with -static
// if HostStaticBinaries is true for the product configuration.