mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-22 11:06:32 +01:00
feat(elfutils): add steps-guix elfutils-0.194 pass1 with autotools regeneration and fts/argp env wiring
This commit is contained in:
parent
afd79c2a42
commit
9515d300d1
3 changed files with 54 additions and 0 deletions
52
steps-guix/elfutils-0.194/pass1.sh
Normal file
52
steps-guix/elfutils-0.194/pass1.sh
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
# Build elfutils against kernel-toolchain dependencies.
|
||||
: "${KERNEL_SYSROOT:=/kernel-toolchain}"
|
||||
: "${KERNEL_TARGET:=x86_64-unknown-linux-musl}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Regenerate autotools outputs from source metadata.
|
||||
AUTOMAKE=automake-1.15 \
|
||||
ACLOCAL=aclocal-1.15 \
|
||||
AUTOCONF=autoconf-2.69 \
|
||||
AUTOHEADER=autoheader-2.69 \
|
||||
autoreconf-2.69 -fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export PATH="${KERNEL_SYSROOT}/bin:${PATH}"
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
PKG_CONFIG_PATH="${KERNEL_SYSROOT}/lib/pkgconfig:${KERNEL_SYSROOT}/share/pkgconfig" \
|
||||
PKG_CONFIG_LIBDIR="${KERNEL_SYSROOT}/lib/pkgconfig:${KERNEL_SYSROOT}/share/pkgconfig" \
|
||||
CPPFLAGS="-I${KERNEL_SYSROOT}/include" \
|
||||
LDFLAGS="-L${KERNEL_SYSROOT}/lib" \
|
||||
LIBS="-lfts -largp" \
|
||||
CC="${KERNEL_TARGET}-gcc" \
|
||||
AR="${KERNEL_TARGET}-ar" \
|
||||
RANLIB="${KERNEL_TARGET}-ranlib" \
|
||||
../configure \
|
||||
--prefix="${KERNEL_SYSROOT}" \
|
||||
--libdir="${KERNEL_SYSROOT}/lib" \
|
||||
--includedir="${KERNEL_SYSROOT}/include" \
|
||||
--build="${TARGET}" \
|
||||
--host="${KERNEL_TARGET}" \
|
||||
--disable-debuginfod \
|
||||
--disable-libdebuginfod
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make "${MAKEJOBS}" install \
|
||||
DESTDIR="${DESTDIR}" \
|
||||
prefix="${KERNEL_SYSROOT}" \
|
||||
libdir="${KERNEL_SYSROOT}/lib" \
|
||||
includedir="${KERNEL_SYSROOT}/include"
|
||||
}
|
||||
1
steps-guix/elfutils-0.194/sources
Normal file
1
steps-guix/elfutils-0.194/sources
Normal file
|
|
@ -0,0 +1 @@
|
|||
f https://sourceware.org/elfutils/ftp/0.194/elfutils-0.194.tar.bz2 09e2ff033d39baa8b388a2d7fbc5390bfde99ae3b7c67c7daaf7433fbcf0f01e
|
||||
|
|
@ -7,3 +7,4 @@ build: binutils-2.41
|
|||
build: gcc-15.2.0
|
||||
build: argp-standalone-1.4.1
|
||||
build: musl-fts-1.2.7
|
||||
build: elfutils-0.194
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue