f329c8f5ac
Use the native rustc cross compiler where possible, and fall back to the qemu rustc if necessary. This should improve speed and reliability. Without this patch, building squeekbox 1.4.0 for aarch64 with the pmbootstrap stack just hangs forever. Related: pmbootstrap#1861
8 lines
318 B
Bash
8 lines
318 B
Bash
#!/bin/sh -e
|
|
# This wrapper gets called from the native rustc, and runs the qemu gcc for
|
|
# linking, with LD_LIBRARY_PATH reset so it does not point to /native anymore.
|
|
# It isn't possible to use the native cross compiler's linker with crossdirect
|
|
# currently (pmaports#233).
|
|
|
|
LD_LIBRARY_PATH=/lib:/usr/lib \
|
|
gcc "$@"
|