Skip to content
Snippets Groups Projects
Commit f2a6e589 authored by Patrick Gartung's avatar Patrick Gartung
Browse files

Need to check the binary is not a Mach-o binary in a linux package or an ELF...

Need to check the binary is not a Mach-o binary in a linux package or an ELF binary in a macOS package.
parent a8b6faf4
Branches
No related tags found
No related merge requests found
......@@ -180,7 +180,11 @@ def write_buildinfo_file(spec, workdir, rel=False):
tty.warn(msg)
if relocate.needs_binary_relocation(m_type, m_subtype):
if not filename.endswith('.o'):
if ((m_subtype in ('x-executable', 'x-sharedlib')
and platform.sys != 'Darwin') or
(m_subtype in ('x-mach-binary')
and platform.sys == 'Darwin') or
(not filename.endswith('.o'))):
rel_path_name = os.path.relpath(path_name, prefix)
binary_to_relocate.append(rel_path_name)
if relocate.needs_text_relocation(m_type, m_subtype):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment