diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-07-12 00:18:22 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-07-12 01:27:00 +0200 |
commit | f727ec5bc8a6f97ae1083026e508b917235dfd2d (patch) | |
tree | 4dfd5f558517d276c42b4baaf6973c799bcd1e44 /gnu/packages/perl.scm | |
parent | 161094c8e2b46128544b85dae8e97d4fcb2818c0 (diff) | |
download | guix-f727ec5bc8a6f97ae1083026e508b917235dfd2d.tar.gz |
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.
Diffstat (limited to 'gnu/packages/perl.scm')
-rw-r--r-- | 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 3d28455405..d1a0218158 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 |