Giter Club home page Giter Club logo

Comments (4)

iwillspeak avatar iwillspeak commented on May 27, 2024

Interesting. It looks like the oniguruma build itself is failing. I wonder if it needs to be told to cross-compile or something.

In the mean time can you install oniguruma from a package repo? It should be picked up from pkgconfig and used instead of compiling from source. That should hopefully avoid this compilation issue until I can take a deeper look at it.

from rust-onig.

robinst avatar robinst commented on May 27, 2024

I saw that there's static linking for onig-sys, so with the feature flag enabled like this:

onig = { version = "1.1.0", features = ["static-libonig"] }

And it builds inside muslrust :)! Maybe the build script should detect that situation and then default to it? I'm not sure if that's a good approach or how other sys crates handle this situation.

Looks like libz-sys detects musl: https://github.com/alexcrichton/libz-sys/blob/master/build.rs#L36

from rust-onig.

iwillspeak avatar iwillspeak commented on May 27, 2024

Interesting. If all that is needed is to statically link then that should be possible from the Cargo.toml. We can define a platform-specific dependency which enables the static libonig feature flag. Do you know what the target-triple is for musl?

from rust-onig.

iwillspeak avatar iwillspeak commented on May 27, 2024

I think something like the following should work:

[target.'cfg(target_env = "musl")'.dependencies]
onig_sys = { features = [ "static_onig"] }

from rust-onig.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.