guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

08/163: gnu: Add gcc-boot. WIP


From: Jan Nieuwenhuizen
Subject: 08/163: gnu: Add gcc-boot. WIP
Date: Thu, 30 Aug 2018 01:03:13 -0400 (EDT)

janneke pushed a commit to branch wip-bootstrap
in repository guix.

commit bbfdc455871760950281716ad30ffdc2e6525052
Author: Jan Nieuwenhuizen <address@hidden>
Date:   Thu Nov 23 19:47:47 2017 +0100

    gnu: Add gcc-boot.  WIP
    
    * gnu/packages/mes.scm (gcc-boot): New variable.
---
 gnu/packages/mes.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/mes.scm b/gnu/packages/mes.scm
index 18c3e22..1082577 100644
--- a/gnu/packages/mes.scm
+++ b/gnu/packages/mes.scm
@@ -446,6 +446,41 @@ standard.")
       (home-page "http://www.tinycc.org/";)
       (license lgpl2.1+))))
 
+;; gcc-boot
+;; <rain1> what I did was just this  [19:11]
+;; <rain1> MAKEINFO=missing CC=tcc $HOME/gcc-4.7.4/configure
+;;         --prefix=$HOME/gcc-out --enable-languages=c --disable-multilib
+;; <rain1> with tcc built and installed in $PATH
+
+(define-public gcc-boot
+  (package
+    ;; (inherit gcc-4.7)
+    (source (package-source gcc-4.7))
+    (name "gcc-boot")
+    (version "4.7.4")
+    (synopsis (package-synopsis gcc-4.7))
+    (supported-systems '("i686-linux"))
+    (build-system gnu-build-system)
+    (native-inputs `(("tcc" ,tcc-boot)))
+    (inputs `(;;("gmp" ,gmp)
+              ;;("mpfr" ,mpfr)
+              ;;("mpc" ,mpc)
+              ;;("libelf" ,libelf)
+              ;;("zlib" ,zlib)
+              ))
+    (arguments
+     `(;;#:out-of-source? #t
+       #:configure-flags `("--enable-languages=c"
+                           "--disable-multilib"
+                           ;;,(string-append "CC='mes-tcc " (assoc-ref 
%build-inputs "tcc") "/lib/crt1.mlibc-o'")
+                           "CC=mes-tcc"
+                           "CFLAGS=-static"
+                           "XAR='mes-tcc -ar"
+                           "MAKEINFO=missing")))
+    (properties `((gcc-libc . ,(assoc-ref inputs "libc"))))
+    (home-page (package-home-page gcc-4.7))
+    (description (package-description gcc-4.7))
+    (license (package-license gcc-4.7))))
 ;;;
 
 (define-public nyacc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]