diff --git a/distro/packages/base.scm b/distro/packages/base.scm index ed33d61d35..4b176301d6 100644 --- a/distro/packages/base.scm +++ b/distro/packages/base.scm @@ -320,10 +320,12 @@ (define-public binutils `(("patch/new-dtags" ,(search-patch "binutils-ld-new-dtags.patch")))) (arguments `(#:patches (list (assoc-ref %build-inputs "patch/new-dtags")) + #:configure-flags '(;; Add `-static-libgcc' to not retain a dependency + ;; on GCC when bootstrapping. + "LDFLAGS=-static-libgcc" - ;; Add `-static-libgcc' to not retain a dependency on GCC when - ;; bootstrapping. - #:configure-flags '("LDFLAGS=-static-libgcc"))) + ;; Don't search under /usr/lib & co. + "--with-lib-path=/no-ld-lib-path"))) (synopsis "GNU Binutils, tools for manipulating binaries (linker, assembler, etc.)") @@ -358,6 +360,9 @@ (define-public gcc-4.7 `("--enable-plugin" "--enable-languages=c,c++" "--disable-multilib" + + "--with-local-prefix=/no-gcc-local-prefix" + ,(let ((libc (assoc-ref %build-inputs "libc"))) (if libc (string-append "--with-native-system-header-dir=" libc diff --git a/distro/packages/make-bootstrap.scm b/distro/packages/make-bootstrap.scm index 3bc6e6b542..10e3d92735 100644 --- a/distro/packages/make-bootstrap.scm +++ b/distro/packages/make-bootstrap.scm @@ -225,7 +225,7 @@ (define %binutils-static (package (inherit binutils) (name "binutils-static") (arguments - `(#:configure-flags '("--disable-gold") + `(#:configure-flags '("--disable-gold" "--with-lib-path=/no-ld-lib-path") #:strip-flags '("--strip-all") #:phases (alist-cons-before 'configure 'all-static