Commit fec94eb
committed
fix(docker): allow build scripts to dlopen libclang in Alpine musl
In Alpine, Rust build scripts are compiled for the musl host target which
defaults to static linking. Static musl binaries cannot dlopen, causing
bindgen to fail when loading libclang.so for z3 FFI generation.
Set CARGO_HOST_RUSTFLAGS="-C target-feature=-crt-static" so build scripts
are dynamically linked (can dlopen) while the target CLI binary stays static.1 parent e7bdfad commit fec94eb
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
0 commit comments