maturin icon indicating copy to clipboard operation
maturin copied to clipboard

Use user-specified library search paths in `RUSTFLAGS` in auditwheel

Open messense opened this issue 1 year ago • 1 comments

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

messense avatar Jun 04 '24 01:06 messense

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

messense avatar Jun 04 '24 08:06 messense