squash! gnu: commencement: gcc-core-mesboot0: Support ARM.

This commit is contained in:
Jan (janneke) Nieuwenhuizen 2022-10-19 09:27:35 +02:00
parent 83842db321
commit 9d40ec0fcd
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -1001,9 +1001,9 @@ (define gcc-core-mesboot0
`("--enable-static"
"--disable-shared"
"--disable-werror"
,(string-append "--build=" ,triplet)
,(string-append "--host=" ,triplet)
;; (string-append "--target=" ,triplet)
,(string-append "--build=" #$triplet)
,(string-append "--host=" #$triplet)
;; (string-append "--target=" #$triplet)
,(string-append "--prefix=" out)))
#:make-flags
#~`("CC=tcc -static -D __GLIBC_MINOR__=6"
@ -1067,7 +1067,7 @@ (define gcc-core-mesboot0
(let* ((tcc (assoc-ref %build-inputs "tcc"))
(out (assoc-ref outputs "out"))
(gcc-dir (string-append
out "/lib/gcc-lib/" ,triplet "/2.95.3")))
out "/lib/gcc-lib/" #$triplet "/2.95.3")))
(mkdir-p "tmp")
(with-directory-excursion "tmp"
(invoke "ar" "x" (string-append "../gcc/libgcc2.a"))