summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYelninei <yelninei@tutamail.com>2026-01-09 08:20:48 +0000
committerMaxim Cournoyer <maxim@guixotic.coop>2026-02-24 09:17:45 +0900
commit82df357bb2b40f4053534e8fb5697daae47f3b60 (patch)
tree1ebcdc0131e5532c4f07c93f200698f0e077a2f6
parent975af2c51d0b8f16e8a6bb42ad2f693541686d6c (diff)
self: Link with libgc.
guile-launcer.c uses libgc symbols on the Hurd. * guix/self.scm (%packages): Add libgc. (quiet-guile): Explicitly link with libgc. Change-Id: I3c2c098af53f8d552ed9ca412e5556a645080726 Signed-off-by: Maxim Cournoyer <maxim@guixotic.coop>
-rw-r--r--guix/self.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/guix/self.scm b/guix/self.scm
index 9552d3208f..ffe47f582f 100644
--- a/guix/self.scm
+++ b/guix/self.scm
@@ -52,6 +52,7 @@
`(gnu packages ,module))
variable)))))
`(("guile" . ,(ref 'guile 'guile-3.0-latest))
+ ("libgc" . ,(ref 'bdw-gc 'libgc))
("guile-avahi" . ,(ref 'guile-xyz 'guile-avahi))
("guile-json" . ,(ref 'guile 'guile-json-4))
("guile-ssh" . ,(ref 'ssh 'guile-ssh))
@@ -564,6 +565,9 @@ instead of 'C'."
(define gcc
(specification->package "gcc-toolchain"))
+ (define libgc
+ (specification->package "libgc"))
+
(define source
(search-path %load-path
"gnu/packages/aux-files/guile-launcher.c"))
@@ -597,6 +601,10 @@ instead of 'C'."
"-L" #$(file-append guile "/lib")
"-Wl,-rpath" #$(file-append guile "/lib")
#$(string-append "-lguile-" effective)
+ ;; On the Hurd guile-launcher.c uses libgc symbols directly
+ "-L" #$(file-append libgc "/lib")
+ "-Wl,-rpath" #$(file-append libgc "/lib")
+ "-lgc"
"-o" (string-append #$output "/bin/guile")))))
(computed-file "guile-wrapper" build))