maturin
maturin copied to clipboard
Use user-specified library search paths in `RUSTFLAGS` in auditwheel
Probably because when repair the wheel maturin only tries paths from <target>-gcc --print-sysroot and linked_paths of cargo build script, it does not take -L options in rust flags into consideration yet.
Originally posted by @messense in https://github.com/PyO3/maturin/discussions/2092#discussioncomment-9647740
We can use the rustflags crate to parse rustflags from cargo-config2 and add the additional libary search paths here:
https://github.com/PyO3/maturin/blob/9a2d4f644a21f44cab5149851d27da037b6383e8/src/auditwheel/audit.rs#L461-L462