mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 05:57:04 +01:00
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:
parent
38d5197272
commit
6afa7dcabf
1 changed files with 8 additions and 4 deletions
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue