gnu: gcc-mesboot: Use commencement-build-target.

* gnu/packages/commencement.scm (gcc-mesboot)[arguments]: Adjust the
configure-flags and 'setenv phase to use commencement-build-target.

Change-Id: I7f864963dd5c08b878dda29188741707b3016edd
This commit is contained in:
Efraim Flashner 2024-10-01 08:20:16 +03:00
parent e01ddbde27
commit 0312a45814
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -1758,8 +1758,8 @@ (define gcc-mesboot
#~(let ((out (assoc-ref %outputs "out"))
(glibc (assoc-ref %build-inputs "libc")))
(list (string-append "--prefix=" out)
"--build=i686-unknown-linux-gnu"
"--host=i686-unknown-linux-gnu"
(string-append "--build=" #$(commencement-build-target))
(string-append "--host=" #$(commencement-build-target))
"--with-host-libstdcxx=-lsupc++"
@ -1808,12 +1808,16 @@ (define gcc-mesboot
(kernel-headers (assoc-ref %build-inputs "kernel-headers")))
(setenv "CONFIG_SHELL" (string-append bash "/bin/sh"))
(setenv "C_INCLUDE_PATH" (string-append
gcc "/lib/gcc-lib/i686-unknown-linux-gnu/4.6.4/include"
gcc "/lib/gcc-lib/"
#$(commencement-build-target)
"/4.6.4/include"
":" kernel-headers "/include"
":" glibc "/include"
":" (getcwd) "/mpfr/src"))
(setenv "CPLUS_INCLUDE_PATH" (string-append
gcc "/lib/gcc-lib/i686-unknown-linux-gnu/4.6.4/include"
gcc "/lib/gcc-lib/"
#$(commencement-build-target)
"/4.6.4/include"
":" kernel-headers "/include"
":" glibc "/include"
":" (getcwd) "/mpfr/src"))