diff options
author | Colin Cross <ccross@android.com> | 2016-08-25 16:54:53 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2016-08-25 16:54:53 -0700 |
commit | 7d82ab76dd3ca95fc9b7872d0eb72523bfe96425 (patch) | |
tree | 99c3e0351ebf8d9fa386b98a9187f89be81370c2 /cc/library.go | |
parent | 0f4e0d6c5d3688766747f353e1799c259d6c0d99 (diff) | |
download | build_soong-7d82ab76dd3ca95fc9b7872d0eb72523bfe96425.tar.gz build_soong-7d82ab76dd3ca95fc9b7872d0eb72523bfe96425.tar.bz2 build_soong-7d82ab76dd3ca95fc9b7872d0eb72523bfe96425.zip |
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
Diffstat (limited to 'cc/library.go')
-rw-r--r-- | cc/library.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/library.go b/cc/library.go index ad1822d4..5119c90d 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 { |