summary refs log tree commit diff
path: root/distro
diff options
context:
space:
mode:
Diffstat (limited to 'distro')
-rw-r--r--distro/packages/base.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/distro/packages/base.scm b/distro/packages/base.scm
index 16a22eb38f..4128ef58de 100644
--- a/distro/packages/base.scm
+++ b/distro/packages/base.scm
@@ -940,8 +940,11 @@ store.")
     ,@(alist-delete "gcc" %boot2-inputs)))
 
 (define-public bash-final
+  ;; Link with `-static-libgcc' to make sure we don't retain a reference
+  ;; to the bootstrap GCC.
   (package-with-bootstrap-guile
-   (package-with-explicit-inputs bash %boot3-inputs
+   (package-with-explicit-inputs (static-libgcc-package bash)
+                                 %boot3-inputs
                                  (current-source-location)
                                  #:guile %bootstrap-guile)))