Musl static compilation still includes dynamic libraries


cargo build --bin test_cli --target=x86_64-unknown-linux-musl --features vendored  --release 

 (0x00007ffd289fa000) => /lib/x86_64-linux-gnu/ (0x00007ff6f3084000) => /lib/x86_64-linux-gnu/ (0x00007ff6f305c000) => /lib/x86_64-linux-gnu/ (0x00007ff6f303a000) => /lib/x86_64-linux-gnu/ (0x00007ff6f2e66000)
        /lib64/ (0x00007ff6f3c85000)

My application includes libusb-sys GitHub - dcuddeback/libusb-sys: Rust bindings for the libusb library. ,I don't understand what path SYSROOT should represent here。


PKG_CONFIG_SYSROOT_DIR=/usr/lib/x86_64-linux-musl/ cargo build --bin test_cli  --target=x86_64-unknown-linux-musl --features vendored --release

but ldd includes dynamic libraries。

use zigbuild will prompt that the library for libusb cannot be found

  = note: ld.lld: error: unable to find library -lusb-1.0

How should I configure my environment correctly for libusb-sys,Ensure that the compilation results do not contain any dynamic libraries