[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
172/176: gnu: gcc-mesboot-wrapper: Wrap g++ too.
From: |
Jan Nieuwenhuizen |
Subject: |
172/176: gnu: gcc-mesboot-wrapper: Wrap g++ too. |
Date: |
Fri, 31 Aug 2018 11:20:35 -0400 (EDT) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit 1976d95963a5d25ff9409ab63c1e39fd4f285437
Author: Jan Nieuwenhuizen <address@hidden>
Date: Fri Aug 31 15:26:20 2018 +0200
gnu: gcc-mesboot-wrapper: Wrap g++ too.
* gnu/packages/commencement.scm (gcc-mesboot-wrapper): Wrap g++ too.
---
gnu/packages/commencement.scm | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 20d9cb1..6a53f10 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -1374,20 +1374,23 @@ ac_cv_c_float_format='IEEE (little-endian)'
(bash (assoc-ref %build-inputs "bash"))
(libc (assoc-ref %build-inputs "libc"))
(gcc (assoc-ref %build-inputs "gcc"))
- (bin (string-append out "/bin"))
- (program (string-append bin "/gcc")))
+ (bin (string-append out "/bin")))
(mkdir-p bin)
- (with-output-to-file program
- (lambda _
- (display (string-append "#! " bash "/bin/bash
-exec " gcc "/bin/gcc"
+ (for-each
+ (lambda (program)
+ (let ((wrapper (string-append bin "/" program)))
+ (with-output-to-file wrapper
+ (lambda _
+ (display (string-append "#! " bash "/bin/bash
+exec " gcc "/bin/" program
" -Wl,--dynamic-linker"
" -Wl," libc ,(glibc-dynamic-linker)
" -Wl,--rpath"
" -Wl," libc "/lib"
" \"address@hidden"
-"))))
- (chmod program #o555)
+"))
+ (chmod wrapper #o555)))))
+ '("gcc" "g++"))
#t)))
(replace 'check
(lambda* (#:key outputs #:allow-other-keys)
- 103/176: gnu: glibc-mesboot: Rename from glibc-boot., (continued)
- 103/176: gnu: glibc-mesboot: Rename from glibc-boot., Jan Nieuwenhuizen, 2018/08/31
- 107/176: gnu: Add gcc-mesboot 4.1.0., Jan Nieuwenhuizen, 2018/08/31
- 119/176: gnu: %mes-seed: Update for mes 0.16.1., Jan Nieuwenhuizen, 2018/08/31
- 121/176: gnu: tcc-boot0: Revise dependencies., Jan Nieuwenhuizen, 2018/08/31
- 157/176: Revert "gnu: Add %make-static, %make-static-stripped, %make-bootstrap-tarball.", Jan Nieuwenhuizen, 2018/08/31
- 163/176: Add new cheat: use %bootstrap-glibc for x86 for now., Jan Nieuwenhuizen, 2018/08/31
- 137/176: gnu: tcc-boot: Use gnu-build-system., Jan Nieuwenhuizen, 2018/08/31
- 148/176: gnu: mes-boot: Update to 0.18. WIP, Jan Nieuwenhuizen, 2018/08/31
- 138/176: gnu: Add %make-static, %make-static-stripped, %make-bootstrap-tarball., Jan Nieuwenhuizen, 2018/08/31
- 167/176: gnu: findutils-boot0: Export (for testing)., Jan Nieuwenhuizen, 2018/08/31
- 172/176: gnu: gcc-mesboot-wrapper: Wrap g++ too.,
Jan Nieuwenhuizen <=
- 168/176: gnu: file-boot0: Export (for testing)., Jan Nieuwenhuizen, 2018/08/31
- 169/176: gnu: file-boot0: Do not strip binaries or validate-runpath., Jan Nieuwenhuizen, 2018/08/31
- 159/176: gcc-mesboot: use package-full-name "-" :-), Jan Nieuwenhuizen, 2018/08/31
- 162/176: gnu: Add glibc-mesboot 2.3.6. WIP, Jan Nieuwenhuizen, 2018/08/31
- 68/176: Revert "gnu: binutils-boot: Update to 2.25.", Jan Nieuwenhuizen, 2018/08/31
- 65/176: gnu: binutils-boot: Update to 2.25., Jan Nieuwenhuizen, 2018/08/31
- 116/176: gnu: gcc-mesboot0: Package with bootstrap-guile., Jan Nieuwenhuizen, 2018/08/31
- 127/176: gnu: binutils-mesboot: Revise dependencies., Jan Nieuwenhuizen, 2018/08/31
- 142/176: gnu: Add %linux-libre-headers-stripped, %linux-libre-headers-bootstrap-tarball., Jan Nieuwenhuizen, 2018/08/31
- 135/176: gnu: mes-boot: Use gnu-build-system., Jan Nieuwenhuizen, 2018/08/31