Subject: [bug#74290] [PATCH v4 56/58] gnu: commencement: libstdc++-boot0: Support the 64bit Hurd.

From: Janneke Nieuwenhuizen <[email-masked]>
Date: Sun, 24 Nov 2024 08:55:19 +0100

* gnu/packages/commencement.scm (make-libstdc++-boot0)[arguments]: When
creating libstdc++-boot0 for the 64bit Hurd, add disable options similar to
libstdc++ to #:configure-flags.

Change-Id: I00636fa48e38823b00ede7dcbd0c1c23544d898c
---
 gnu/packages/commencement.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index dab65c7ca1..2a32485fc0 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -2288,6 +2288,14 @@ (define (make-libstdc++-boot0 gcc)
          #:validate-runpath? #f
 
          ,@(substitute-keyword-arguments (package-arguments lib)
+             ((#:configure-flags flags)
+              (if (target-hurd64?)
+                  #~(cons* "--disable-shared"
+                           "--disable-libstdcxx-dual-abi"
+                           "--disable-libstdcxx-threads"
+                           "--disable-libstdcxx-pch"
+                           #$flags)
+                  flags))
              ((#:phases phases)
               #~(modify-phases #$phases
                   (add-after 'unpack 'unpack-gmp&co
-- 
2.46.0