From 280eaba8d5e9d21e007bd800a070cc448012252e Mon Sep 17 00:00:00 2001 From: vxtls <187420201+vxtls@users.noreply.github.com> Date: Sun, 22 Feb 2026 14:07:57 -0500 Subject: [PATCH] fix(elfutils): enforce static linking via LDFLAGS env in configure and build stages --- steps-guix/elfutils-0.194/pass1.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/steps-guix/elfutils-0.194/pass1.sh b/steps-guix/elfutils-0.194/pass1.sh index db437e53..b6f79c23 100644 --- a/steps-guix/elfutils-0.194/pass1.sh +++ b/steps-guix/elfutils-0.194/pass1.sh @@ -21,7 +21,7 @@ src_configure() { 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" \ + LDFLAGS="-static -L${KERNEL_SYSROOT}/lib" \ LD_LIBRARY_PATH="${KERNEL_SYSROOT}/lib" \ CC=gcc \ AR=ar \ @@ -32,14 +32,13 @@ src_configure() { --includedir="${KERNEL_SYSROOT}/include" \ --build="${TARGET}" \ --host="${TARGET}" \ - --disable-shared \ - --enable-static \ --disable-debuginfod \ --disable-libdebuginfod } src_compile() { - default_src_compile + make "${MAKEJOBS}" \ + LDFLAGS="-static -L${KERNEL_SYSROOT}/lib" } src_install() {