Browse Source

distro: Fix GCC tarball to include the `libexec' directory.

* distro/packages/base.scm (%gcc-stripped): Copy $gcc/libexec to $out.
version-0.8.3
Ludovic Courtès 10 years ago
parent
commit
40749fb6eb
  1. 14
      distro/packages/base.scm

14
distro/packages/base.scm

@ -2337,10 +2337,11 @@ store.")
(guix build utils))
(setvbuf (current-output-port) _IOLBF)
(let* ((out (assoc-ref %outputs "out"))
(bindir (string-append out "/bin"))
(libdir (string-append out "/lib"))
(gcc (assoc-ref %build-inputs "gcc")))
(let* ((out (assoc-ref %outputs "out"))
(bindir (string-append out "/bin"))
(libdir (string-append out "/lib"))
(libexecdir (string-append out "/libexec"))
(gcc (assoc-ref %build-inputs "gcc")))
(copy-recursively (string-append gcc "/bin") bindir)
(for-each remove-store-references
(find-files bindir ".*"))
@ -2349,6 +2350,11 @@ store.")
(for-each remove-store-references
(remove (cut string-suffix? ".h" <>)
(find-files libdir ".*")))
(copy-recursively (string-append gcc "/libexec")
libexecdir)
(for-each remove-store-references
(find-files libexecdir ".*"))
#t))))
(inputs `(("gcc" ,%gcc-static)))))

Loading…
Cancel
Save