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.
This commit is contained in:
Ludovic Courtès 2015-07-12 00:18:22 +02:00
parent 161094c8e2
commit f727ec5bc8
1 changed files with 9 additions and 1 deletions

View File

@ -72,7 +72,15 @@
"-Dinstallstyle=lib/perl5" "-Dinstallstyle=lib/perl5"
"-Duseshrplib" "-Duseshrplib"
(string-append "-Dlocincpth=" libc "/include") (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 (add-before
'strip 'make-shared-objects-writable 'strip 'make-shared-objects-writable