mirror of
https://github.com/jiegec/usbip.git
synced 2026-10-20 21:27:09 -04:00
ldd can return non-zero / empty for statically-linked or symlinked binaries (e.g. the distro usbip tool), which under set -o pipefail aborted the build. Copy the dynamic loader plus a comprehensive set of libc/usbip libraries explicitly, and drive the ldd-based copy via process substitution so it never aborts. Also follow the usbip symlink and preserve its real path.