Skip to content

use system libcurl with MSYS2/MINGW64? #221

Closed
@ian-p-cooke

Description

@ian-p-cooke

can curl-sys/build.rs use pkg-config for x86_64-pc-windows-gnu? right now there's an explicit check in build.rs for a windows target that skips pkg-config but I don't understand why that's there. At least for my MSYS2/MINGW64 install (Windows 10) pkg-config works fine and curl-sys can build with that.

I got on this path because I was building cargo and getting a bunch of OpenSSL linking errors... it seemed like libcurl was building with my system openssl but not statically linking it. Then I was like, "why is it building libcurl at all?" So I cloned curl-rust, removed that condition, added a patch section to cargo's Cargo.toml to use my curl-rust and curl-sys and then it worked out. So maybe that lack of static linking is a second issue but using pkg-config would help me more.

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