gnu: gcc-core-mesboot1: Use commencement-build-target.

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

Change-Id: I6dc04a4aacde08a83f9f5dac3af9c0fabc69d2a7
This commit is contained in:
Efraim Flashner 2024-10-01 08:17:59 +03:00
parent 38d5197272
commit 6afa7dcabf
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -1318,15 +1318,17 @@ (define gcc-core-mesboot1
"-B" libc "/lib "
"-Wl,-dynamic-linker "
"-Wl," libc
#$(glibc-dynamic-linker "i686-linux"))))
#$(glibc-dynamic-linker
(gnu-triplet->nix-system
(commencement-build-target))))))
(list (string-append "LDFLAGS=" ldflags)
(string-append "LDFLAGS_FOR_TARGET=" ldflags)))
#:configure-flags
#~(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))
(string-append "--with-native-system-header-dir=" glibc "/include")
(string-append "--with-build-sysroot=" glibc "/include")
"--disable-bootstrap"
@ -1396,7 +1398,9 @@ (define gcc-core-mesboot1
(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/2.95.3/include"
gcc "/lib/gcc-lib/"
#$(commencement-build-target)
"/2.95.3/include"
":" kernel-headers "/include"
":" glibc "/include"
":" (getcwd) "/mpfr/src"))