gnu: glibc: Build with '--strip-debug' instead of '--strip-all'.

Fixes <https://issues.guix.gnu.org/54728>.
Reported by Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>.

* gnu/packages/base.scm (glibc)[arguments]: Add #:strip-flags.
This commit is contained in:
Ludovic Courtès 2022-04-07 18:34:47 +02:00
parent edb9a5b835
commit 6b6fb78724
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2012-2022 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2014, 2019 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
;;; Copyright © 2014, 2015, 2016, 2018 Mark H Weaver <mhw@netris.org>
@ -742,6 +742,10 @@ (define-public glibc
(guix build utils)
(guix build gnu-build-system))
;; Strip binaries but preserve the symbol table needed by Valgrind:
;; <https://lists.gnu.org/archive/html/help-guix/2022-03/msg00036.html>.
#:strip-flags '("--strip-debug")
#:configure-flags
(list "--sysconfdir=/etc"