Comments (7)
Right, I wasn't sure how to do this, but a feature flag makes sense. When I get some time I will do a PR.
from alsa-sys.
A quick googling yields this result, might be helpful? https://stackoverflow.com/questions/61934997/undefined-reference-to-stat-time64-when-cross-compiling-rust-project-on-mu
from alsa-sys.
Thanks for the pointer! This suggests that changing .statik(true)
should just work, and something about my toolchain / sysroot is broken.
I am building with Buildroot 2021.08, which has Musl 1.22 and Rust 1.54. I have just spotted that Buildroot doesn't build the rust-std libraries itself, it downloads them from https://static.rust-lang.org/dist/rust-std-1.54.0-armv7-unknown-linux-musleabihf.tar.xz and looking at the contained liblibc-e1ae72f87d6a487b.rlib
file, this might indeed contain a statically linked copy of Musl 1.1.
In which case, while alsa-sys could add support for static linking now, it might not be useful until rust-lang/rust#72274 is completed.
from alsa-sys.
Feel free to add a PR that adds support for static linking, I suppose this would be implemented as a feature not enabled by default?
from alsa-sys.
@ssssam @diwic does this mean that i cannot manually compile alsa lib on an ubuntu machine and link it with cargo-zigbuild on my mac??
I have been trying for days to make it work. and it compiles and links successfuly, just to segfault on my players...
(the target is x86_64-unknown-linux-gnu)
from alsa-sys.
Related Issues (8)
- `cargo build --release --target=aarch64-unknown-linux-gnu` failed HOT 1
- [feature request] Add a feature to generate bindings at build-time HOT 5
- Library forces use of /usr/lib HOT 3
- Release 0.2.0 missing HOT 1
- Missing `snd_pcm_sw_params_set_timestamp_type` HOT 6
- Test failed on fedora copr HOT 4
- Improve error message on missing pkg-conf HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alsa-sys.