Support static_executable: true for musl builds
Bug: 190084016 Test: aosp-build-tools linux_musl build Change-Id: I630c54033c44ddd6b54388ed36642629cf2e4e5b
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user