[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/08: gnu: gcc-toolchain: Add empty librt.a.
From: |
guix-commits |
Subject: |
05/08: gnu: gcc-toolchain: Add empty librt.a. |
Date: |
Fri, 25 Aug 2023 12:28:37 -0400 (EDT) |
jpoiret pushed a commit to branch master
in repository guix.
commit 6c447ababfb11581a75cff8281e96f701e216692
Author: Josselin Poiret <dev@jpoiret.xyz>
AuthorDate: Thu May 4 21:50:37 2023 +0200
gnu: gcc-toolchain: Add empty librt.a.
* gnu/packages/commencememnt.scm (make-gcc-toolchain): Add empty librt.a.
* gnu/packages/base.scm (gcc): Add a warning regarding the missing librt.a.
---
gnu/packages/base.scm | 4 ++++
gnu/packages/commencement.scm | 7 +++++++
2 files changed, 11 insertions(+)
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 32bc69e2c4..5a3d5aced5 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -967,6 +967,10 @@ the store.")
;; library is empty by some criterion (such as their file
;; size equaling eight bytes) rather than hardcoding them
;; by name.
+
+ ;; XXX: We forgot librt.a for the current version! In
+ ;; the meantime, gcc-toolchain provides it, but remove
+ ;; that fix once librt.a is added here.
(define empty-static-libraries
'("libpthread.a" "libdl.a" "libutil.a" "libanl.a"))
(define (empty-static-library? file)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index e522e70444..9604f06a47 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -3561,6 +3561,13 @@ COREUTILS-FINAL vs. COREUTILS, etc."
(union-build (assoc-ref %outputs "static")
(list (assoc-ref %build-inputs
"libc-static")))
+ ;; XXX Remove once an empty librt.a is added to
+ ;; libc:out.
+ (copy-file
+ (string-append (assoc-ref %outputs "out")
+ "/lib/libpthread.a")
+ (string-append (assoc-ref %outputs "out")
+ "/lib/librt.a"))
#t))))
(native-search-paths
- branch master updated (1c916c167b -> 4fefbd4f14), guix-commits, 2023/08/25
- 03/08: build: Add dependency on guix script for help2man targets., guix-commits, 2023/08/25
- 02/08: image: Add mbr-raw-image-type and use by default., guix-commits, 2023/08/25
- 05/08: gnu: gcc-toolchain: Add empty librt.a.,
guix-commits <=
- 06/08: gnu: system: Add home-directory-permissions field to <user-account>., guix-commits, 2023/08/25
- 07/08: doc: Note that `guix shell` should contain base language packages., guix-commits, 2023/08/25
- 01/08: tests: guix-shell: Use bash instead of user's $SHELL., guix-commits, 2023/08/25
- 04/08: graph: Add GraphML backend., guix-commits, 2023/08/25
- 08/08: tests: guix-home: Fix description search for home-mcron., guix-commits, 2023/08/25