guix-commits
[Top][All Lists]
Advanced

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

branch master updated: guix: self: Do not record reference to gcc-toolch


From: guix-commits
Subject: branch master updated: guix: self: Do not record reference to gcc-toolchain.
Date: Sat, 18 Jun 2022 16:13:31 -0400

This is an automated email from the git hooks/post-receive script.

roptat pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 319b8331b2 guix: self: Do not record reference to gcc-toolchain.
319b8331b2 is described below

commit 319b8331b2357e12ec9edb9665513c32bef56622
Author: Julien Lepiller <julien@lepiller.eu>
AuthorDate: Sat Jun 18 08:53:11 2022 +0200

    guix: self: Do not record reference to gcc-toolchain.
    
    The ld-wrapper from gcc-toolchain records a reference to the library
    path through rpath, but this is not needed.  By explicitely using rpath
    flags instead, we save 150 MB of closure.
    
    * guix/self.scm (quiet-guile): Do not record reference to gcc-toolchain.
---
 guix/self.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/guix/self.scm b/guix/self.scm
index 9a64051c32..36ada4d171 100644
--- a/guix/self.scm
+++ b/guix/self.scm
@@ -569,10 +569,12 @@ instead of 'C'."
                               (filter package? packages))))
                    ":"))
           (setenv "LIBRARY_PATH" #$(file-append gcc "/lib"))
+          (setenv "GUIX_LD_WRAPPER_DISABLE_RPATH" "1")
 
           (invoke "gcc" #$(local-file source) "-Wall" "-g0" "-O2"
                   "-I" #$(file-append guile "/include/guile/" effective)
                   "-L" #$(file-append guile "/lib")
+                  "-Wl,-rpath" #$(file-append guile "/lib")
                   #$(string-append "-lguile-" effective)
                   "-o" (string-append #$output "/bin/guile")))))
 



reply via email to

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