Skip to content

Does not use system dylib when cross-compiling on macOS #84

@kornelski

Description

@kornelski

macOS has fat binary dylibs with executable code for multiple architectures. When cross-compiling between macOS on x86 and ARM, all system libraries are usable on both architectures, including libz.1.dylib.

The current logic gives up on system zlib when target != host, which causes unnecessary static linking when the target and host are x86_64-apple-darwin and aarch64-apple-darwin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions