guix-commits
[Top][All Lists]
Advanced

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

03/03: gnu: perl: Do not retain references to Binutils and other build-t


From: Ludovic Courtès
Subject: 03/03: gnu: perl: Do not retain references to Binutils and other build-time tools.
Date: Sat, 11 Jul 2015 23:27:11 +0000

civodul pushed a commit to branch core-updates
in repository guix.

commit f727ec5bc8a6f97ae1083026e508b917235dfd2d
Author: Ludovic Courtès <address@hidden>
Date:   Sun Jul 12 00:18:22 2015 +0200

    gnu: perl: Do not retain references to Binutils and other build-time tools.
    
    * gnu/packages/perl.scm (perl)[arguments]: Pass -Dlibpth and -Dplibpth to
      ./Configure.
---
 gnu/packages/perl.scm |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 3d28455..d1a0218 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -72,7 +72,15 @@
                         "-Dinstallstyle=lib/perl5"
                         "-Duseshrplib"
                         (string-append "-Dlocincpth=" libc "/include")
-                        (string-append "-Dloclibpth=" libc "/lib"))))))
+                        (string-append "-Dloclibpth=" libc "/lib")
+
+                        ;; Force the library search path to contain only libc
+                        ;; because it is recorded in Config.pm and
+                        ;; Config_heavy.pl; we don't want to keep a reference
+                        ;; to everything that's in $LIBRARY_PATH at build
+                        ;; time (Binutils, bzip2, file, etc.)
+                        (string-append "-Dlibpth=" libc "/lib")
+                        (string-append "-Dplibpth=" libc "/lib"))))))
 
          (add-before
           'strip 'make-shared-objects-writable



reply via email to

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