Skip to content

Conversation

@lukefrasera
Copy link

When using Fedora CMake defaults to generating targets within <build>/lib64/libnng.a instead of <build>/lib/libnng.a. nng-sys/build.rs only looks for libraries within the lib folder and as such fails to build. This PR adds support for this alternative directory.

This is likely not the best implementation solution, but I'm hoping to shed light on the underlying issue.

Copy link
Collaborator

@flxo flxo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Can please leave a comment on the lines about the order?

nit: avoid the allocation lib if lib64 is present:

    let lib64 = dst.join("lib64");
    if lib64.exists() { lib64 } else { dst.join("lib") }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants