Build with: RUSTFLAGS="-C link-arg=-fuse-ld=/Users/ian/.cargo/zld" cargo build But replace "/Users/ian/.cargo/zld" with your path to zld.