gnu: gcc-mesboot1-wrapper: Correctly target more systems.

* gnu/packages/commencement.scm (gcc-mesboot1-wrapper)[arguments]:
Adjust the 'build phase to correctly target more architectures.

Change-Id: I26ed5d329d7b3c80d74edd27acf4f2865928db7b
This commit is contained in:
Efraim Flashner 2024-10-01 11:53:11 +03:00
parent b6c25eafb6
commit 3d1a94c948
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -1724,8 +1724,9 @@ (define gcc-mesboot1-wrapper
(display (string-append "#! " bash "/bin/bash
exec " gcc "/bin/" program
" -Wl,--dynamic-linker"
;; also for x86_64-linux, we are still on i686-linux
" -Wl," libc ,(glibc-dynamic-linker "i686-linux")
" -Wl," libc ,(glibc-dynamic-linker
(gnu-triplet->nix-system
(commencement-build-target)))
" -Wl,--rpath"
" -Wl," libc "/lib"
" \"$@\"
@ -1734,9 +1735,9 @@ (define gcc-mesboot1-wrapper
'("cpp"
"gcc"
"g++"
"i686-unknown-linux-gnu-cpp"
"i686-unknown-linux-gnu-gcc"
"i686-unknown-linux-gnu-g++")))))
,(string-append (commencement-build-target) "-cpp")
,(string-append (commencement-build-target) "-gcc")
,(string-append (commencement-build-target) "-g++"))))))
(replace 'check
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))