mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-22 19:16:32 +01:00
fix(elfutils): switch to native compiler for pass1 while keeping fts/argp env wiring
This commit is contained in:
parent
9515d300d1
commit
cb1a8a6b28
1 changed files with 3 additions and 8 deletions
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
# Build elfutils against kernel-toolchain dependencies.
|
# Build elfutils against kernel-toolchain dependencies.
|
||||||
: "${KERNEL_SYSROOT:=/kernel-toolchain}"
|
: "${KERNEL_SYSROOT:=/kernel-toolchain}"
|
||||||
: "${KERNEL_TARGET:=x86_64-unknown-linux-musl}"
|
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
default
|
default
|
||||||
|
|
@ -16,8 +15,6 @@ src_prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
export PATH="${KERNEL_SYSROOT}/bin:${PATH}"
|
|
||||||
|
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
|
|
@ -26,15 +23,13 @@ src_configure() {
|
||||||
CPPFLAGS="-I${KERNEL_SYSROOT}/include" \
|
CPPFLAGS="-I${KERNEL_SYSROOT}/include" \
|
||||||
LDFLAGS="-L${KERNEL_SYSROOT}/lib" \
|
LDFLAGS="-L${KERNEL_SYSROOT}/lib" \
|
||||||
LIBS="-lfts -largp" \
|
LIBS="-lfts -largp" \
|
||||||
CC="${KERNEL_TARGET}-gcc" \
|
CC=gcc \
|
||||||
AR="${KERNEL_TARGET}-ar" \
|
AR=ar \
|
||||||
RANLIB="${KERNEL_TARGET}-ranlib" \
|
RANLIB=ranlib \
|
||||||
../configure \
|
../configure \
|
||||||
--prefix="${KERNEL_SYSROOT}" \
|
--prefix="${KERNEL_SYSROOT}" \
|
||||||
--libdir="${KERNEL_SYSROOT}/lib" \
|
--libdir="${KERNEL_SYSROOT}/lib" \
|
||||||
--includedir="${KERNEL_SYSROOT}/include" \
|
--includedir="${KERNEL_SYSROOT}/include" \
|
||||||
--build="${TARGET}" \
|
|
||||||
--host="${KERNEL_TARGET}" \
|
|
||||||
--disable-debuginfod \
|
--disable-debuginfod \
|
||||||
--disable-libdebuginfod
|
--disable-libdebuginfod
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue