Merge "Only use -read_only_relocs on darwin x86"
This commit is contained in:
@@ -229,9 +229,13 @@ func (library *libraryDecorator) linkerFlags(ctx ModuleContext, flags Flags) Fla
|
|||||||
f = append(f,
|
f = append(f,
|
||||||
"-dynamiclib",
|
"-dynamiclib",
|
||||||
"-single_module",
|
"-single_module",
|
||||||
"-read_only_relocs suppress",
|
|
||||||
"-install_name @rpath/"+libName+flags.Toolchain.ShlibSuffix(),
|
"-install_name @rpath/"+libName+flags.Toolchain.ShlibSuffix(),
|
||||||
)
|
)
|
||||||
|
if ctx.Arch().ArchType == android.X86 {
|
||||||
|
f = append(f,
|
||||||
|
"-read_only_relocs suppress",
|
||||||
|
)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
f = append(f,
|
f = append(f,
|
||||||
sharedFlag,
|
sharedFlag,
|
||||||
|
Reference in New Issue
Block a user