Skip to content

Example fails to link on macOS #3

@ct-porco

Description

@ct-porco

I'm unable to fully build the included example on macOS. Cargo fails during the linking step. (The example builds fine as-is on Debian.) I've found that adding a build.rs file like the one below resolves the linking issue. I'm happy to put it in a pull request if that's helpful. This also appears to be a required step to build crates which depend on wsdf on macOS.

fn main() {
    #[cfg(target_os = "macos")]
    {
        println!("cargo:rustc-link-arg=-undefined");
        println!("cargo:rustc-link-arg=dynamic_lookup");
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions