mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-22 19:16:32 +01:00
fix(linux-6.12.74): keep host tools on /usr/bin and avoid cross ld contamination
This commit is contained in:
parent
6b10401b65
commit
e821a0670c
1 changed files with 6 additions and 1 deletions
|
|
@ -6,7 +6,12 @@
|
||||||
: "${KERNEL_TARGET:=x86_64-unknown-linux-musl}"
|
: "${KERNEL_TARGET:=x86_64-unknown-linux-musl}"
|
||||||
|
|
||||||
kernel_env() {
|
kernel_env() {
|
||||||
export PATH="${KERNEL_SYSROOT}/bin:${PATH}"
|
# Keep host tools on the host toolchain; target tools come from CROSS_COMPILE.
|
||||||
|
export PATH="/usr/bin:/bin"
|
||||||
|
export HOSTCC="gcc"
|
||||||
|
export HOSTCXX="g++"
|
||||||
|
export HOSTLD="ld"
|
||||||
|
export HOSTAR="ar"
|
||||||
export HOSTCFLAGS="-I${KERNEL_SYSROOT}/include"
|
export HOSTCFLAGS="-I${KERNEL_SYSROOT}/include"
|
||||||
export HOSTLDFLAGS="-L${KERNEL_SYSROOT}/lib"
|
export HOSTLDFLAGS="-L${KERNEL_SYSROOT}/lib"
|
||||||
export LD_LIBRARY_PATH="${KERNEL_SYSROOT}/lib:${LD_LIBRARY_PATH}"
|
export LD_LIBRARY_PATH="${KERNEL_SYSROOT}/lib:${LD_LIBRARY_PATH}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue