guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: website: ld-so-cache: Explain 'make-dynamic-linker-cache' phase.


From: Ludovic Courtès
Subject: 01/02: website: ld-so-cache: Explain 'make-dynamic-linker-cache' phase.
Date: Mon, 2 Aug 2021 08:43:38 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix-artwork.

commit 8aa52ed89a4ecb34a985e93df54b2d344fa8b1e1
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Aug 2 14:13:04 2021 +0200

    website: ld-so-cache: Explain 'make-dynamic-linker-cache' phase.
    
    * website/drafts/ld-so-cache.md: Explain 'make-dynamic-linker-cache'
    procedure.
---
 website/drafts/ld-so-cache.md | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/website/drafts/ld-so-cache.md b/website/drafts/ld-so-cache.md
index 4b58f00..efb4b26 100644
--- a/website/drafts/ld-so-cache.md
+++ b/website/drafts/ld-so-cache.md
@@ -211,6 +211,12 @@ tracker](https://issues.guix.gnu.org/44899); you can see 
[the glibc
 
patch](https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/patches/glibc-dl-cache.patch?h=core-updates&id=0236013cd0fc86ff4a042885c735e3f36a7f5c25)
 and the new [`make-dynamic-linker-cache` build
 
phase](https://git.savannah.gnu.org/cgit/guix.git/tree/guix/build/gnu-build-system.scm?h=core-updates&id=0236013cd0fc86ff4a042885c735e3f36a7f5c25#n735).
+In short, the `make-dynamic-linker-cache` phase computes the set of
+direct and indirect dependencies of an ELF file using the
+[`file-needed/recursive`](https://git.savannah.gnu.org/cgit/guix.git/tree/guix/build/gremlin.scm?id=0236013cd0fc86ff4a042885c735e3f36a7f5c25#n265)
+procedure and derives from that the library search path, creates a
+temporary `ld.so.conf` file containing this search path for use by
+`ldconfig`, and finally runs `ldconfig` to actually build the cache.
 
 How does this play out in practice?  Let’s try an `emacs` build that
 uses this new loader cache:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]