From 4873f8ed9f79f8e20c8304f8ea1b4664df36fa3e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org>
Date: Thu, 10 Jan 2013 00:09:25 +0100
Subject: [PATCH] distro: binutils: Add a "lib" output.

* distro/packages/base.scm (binutils): Add `outputs' field.
---
 distro/packages/base.scm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/distro/packages/base.scm b/distro/packages/base.scm
index cb0cb0fd796..bc705f16e78 100644
--- a/distro/packages/base.scm
+++ b/distro/packages/base.scm
@@ -353,6 +353,11 @@ (define-public binutils
               "1a9w66v5dwvbnawshjwqcgz7km6kw6ihkzp6sswv9ycc3knzhykc"))))
    (build-system gnu-build-system)
 
+   ;; Split Binutils in several outputs, mostly to avoid collisions in
+   ;; user profiles with GCC---e.g., libiberty.a.
+   (outputs '("out"                        ; ar, ld, binutils.info, etc.
+              "lib"))                      ; libbfd.a, bfd.h, etc.
+
    ;; TODO: Add dependency on zlib + those for Gold.
    (native-inputs
     `(("patch/new-dtags" ,(search-patch "binutils-ld-new-dtags.patch"))))
-- 
GitLab