Fix mac art build
-Wl,-read_only_relocs,suppress is required for libart to build to avoid the error: ld: illegal text-relocation to '__ZN3art7Runtime9instance_E' in out/soong/.intermediates/art/runtime/libart/darwin_x86_static/obj/art/runtime/runtime.o from '_art_quick_throw_null_pointer_exception' in out/soong/.intermediates/art/runtime/libart/darwin_x86_static/obj/art/runtime/arch/x86/quick_entrypoints_x86.o for architecture i386 Change-Id: Id9a0fda1dbf12a254f92419a21e5f290895ea62c
This commit is contained in:
parent
0f4e0d6c5d
commit
7d82ab76dd
|
@ -215,7 +215,7 @@ func (library *libraryDecorator) linkerFlags(ctx ModuleContext, flags Flags) Fla
|
|||
f = append(f,
|
||||
"-dynamiclib",
|
||||
"-single_module",
|
||||
//"-read_only_relocs suppress",
|
||||
"-read_only_relocs suppress",
|
||||
"-install_name @rpath/"+libName+flags.Toolchain.ShlibSuffix(),
|
||||
)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue