From 7d82ab76dd3ca95fc9b7872d0eb72523bfe96425 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 25 Aug 2016 16:54:53 -0700 Subject: [PATCH] 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 --- cc/library.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cc/library.go b/cc/library.go index ad1822d40..5119c90d0 100644 --- a/cc/library.go +++ b/cc/library.go @@ -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 {