Commit 63919ea0 authored by altaic's avatar altaic

Don't use read_only_relocs on darwin x86-64; fixes #4984

parent 8a57fce6
......@@ -1738,7 +1738,10 @@ linkDynLib dflags o_files dep_packages = do
md_c_flags
++ o_files
++ [ "-undefined", "dynamic_lookup", "-single_module",
"-Wl,-read_only_relocs,suppress", "-install_name", instName ]
#if !defined(x86_64_TARGET_ARCH)
"-Wl,-read_only_relocs,suppress",
#endif
"-install_name", instName ]
++ extra_ld_inputs
++ lib_path_opts
++ extra_ld_opts
......
......@@ -146,7 +146,7 @@ ld-options:
, "-Wl,-search_paths_first"
#endif
#ifdef darwin_HOST_OS
#if defined(darwin_HOST_OS) && !defined(x86_64_HOST_ARCH)
, "-read_only_relocs", "warning"
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment