From dc4e02572ec8726957402c1b0c2c6d37e2589af7 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sat, 1 Sep 2012 01:14:31 +0200 Subject: build-system/gnu: Add `path-exclusions' parameter. * guix/build/gnu-build-system.scm (set-paths): Add new `path-exclusions' parameter; honor it. * guix/build-system/gnu.scm (gnu-build): New `path-exclusions' keyword parameter; pass it to BUILDER. * distro/base.scm (gcc-4.7): Exclude "libc" from $LIBRARY_PATH. --- distro/base.scm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'distro') diff --git a/distro/base.scm b/distro/base.scm index 44ee059748..949cb571b1 100644 --- a/distro/base.scm +++ b/distro/base.scm @@ -605,6 +605,15 @@ BFD (Binary File Descriptor) library, `gprof', `nm', `strip', etc.") "-Wl," libc "/lib/ld-linux-x86-64.so.2") ,(string-append "BOOT_CFLAGS=-O2 " ,(if stripped? "-g0" "-g")))) + + ;; Exclude libc from $LIBRARY_PATH since the compiler being used + ;; should know whether its libc is, and to avoid linking build tools + ;; like `genhooks' against the wrong libc (for instance, when + ;; building a gcc-for-glibc-2.16 with a gcc-for-glibc-2.13, + ;; `genhooks' could end up being linked with glibc-2.16 but using + ;; crt*.o from glibc-2.13.) + #:path-exclusions '(("LIBRARY_PATH" "libc")) + #:tests? #f #:phases (alist-cons-before -- cgit v1.2.3