diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2022-06-08 14:46:24 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2022-06-08 14:46:24 +0200 |
| commit | 8c3e9da13a3c92a7db308db8c0d81cb474ad7799 (patch) | |
| tree | 88d06952aa5cc3a9c4991d9c43eb7950ff174fe1 /gnu/packages/bootstrap.scm | |
| parent | 5439c04ebdb7b6405f5ea2446b375f1d155a8d95 (diff) | |
| parent | 0c5299200ffcd16370f047b7ccb187c60f30da34 (diff) | |
Merge branch 'master' into core-updates
Diffstat (limited to 'gnu/packages/bootstrap.scm')
| -rw-r--r-- | gnu/packages/bootstrap.scm | 51 |
1 files changed, 24 insertions, 27 deletions
diff --git a/gnu/packages/bootstrap.scm b/gnu/packages/bootstrap.scm index 11cc8fbef9f..b76efb6fdcb 100644 --- a/gnu/packages/bootstrap.scm +++ b/gnu/packages/bootstrap.scm | |||
| @@ -26,6 +26,7 @@ | |||
| 26 | (define-module (gnu packages bootstrap) | 26 | (define-module (gnu packages bootstrap) |
| 27 | #:use-module (guix licenses) | 27 | #:use-module (guix licenses) |
| 28 | #:use-module (gnu packages) | 28 | #:use-module (gnu packages) |
| 29 | #:use-module (guix platform) | ||
| 29 | #:use-module (guix packages) | 30 | #:use-module (guix packages) |
| 30 | #:use-module (guix download) | 31 | #:use-module (guix download) |
| 31 | #:use-module (guix build-system) | 32 | #:use-module (guix build-system) |
| @@ -312,33 +313,29 @@ or false to signal an error." | |||
| 312 | (%current-system)))) | 313 | (%current-system)))) |
| 313 | "Return the name of Glibc's dynamic linker for SYSTEM." | 314 | "Return the name of Glibc's dynamic linker for SYSTEM." |
| 314 | ;; See the 'SYSDEP_KNOWN_INTERPRETER_NAMES' cpp macro in libc. | 315 | ;; See the 'SYSDEP_KNOWN_INTERPRETER_NAMES' cpp macro in libc. |
| 315 | (cond ((string=? system "x86_64-linux") "/lib/ld-linux-x86-64.so.2") | 316 | (let ((platform (lookup-platform-by-system system))) |
| 316 | ((string=? system "i686-linux") "/lib/ld-linux.so.2") | 317 | (cond |
| 317 | ((string=? system "armhf-linux") "/lib/ld-linux-armhf.so.3") | 318 | ((platform? platform) |
| 318 | ((string=? system "mips64el-linux") "/lib/ld.so.1") | 319 | (platform-glibc-dynamic-linker platform)) |
| 319 | ((string=? system "i586-gnu") "/lib/ld.so.1") | 320 | |
| 320 | ((string=? system "i686-gnu") "/lib/ld.so.1") | 321 | ;; TODO: Define those as platforms. |
| 321 | ((string=? system "aarch64-linux") "/lib/ld-linux-aarch64.so.1") | 322 | ((string=? system "i686-gnu") "/lib/ld.so.1") |
| 322 | ((string=? system "powerpc-linux") "/lib/ld.so.1") | 323 | ((string=? system "powerpc64-linux") "/lib/ld64.so.1") |
| 323 | ((string=? system "powerpc64-linux") "/lib/ld64.so.1") | 324 | ((string=? system "alpha-linux") "/lib/ld-linux.so.2") |
| 324 | ((string=? system "powerpc64le-linux") "/lib/ld64.so.2") | 325 | |
| 325 | ((string=? system "alpha-linux") "/lib/ld-linux.so.2") | 326 | ;; XXX: This one is used bare-bones, without a libc, so add a case |
| 326 | ((string=? system "s390x-linux") "/lib/ld64.so.1") | 327 | ;; here just so we can keep going. |
| 327 | ((string=? system "riscv64-linux") "/lib/ld-linux-riscv64-lp64d.so.1") | 328 | ((string=? system "arm-elf") "no-ld.so") |
| 328 | 329 | ((string=? system "arm-eabi") "no-ld.so") | |
| 329 | ;; XXX: This one is used bare-bones, without a libc, so add a case | 330 | ((string=? system "xtensa-elf") "no-ld.so") |
| 330 | ;; here just so we can keep going. | 331 | ((string=? system "avr") "no-ld.so") |
| 331 | ((string=? system "arm-elf") "no-ld.so") | 332 | ((string=? system "propeller-elf") "no-ld.so") |
| 332 | ((string=? system "arm-eabi") "no-ld.so") | 333 | ((string=? system "i686-mingw") "no-ld.so") |
| 333 | ((string=? system "xtensa-elf") "no-ld.so") | 334 | ((string=? system "x86_64-mingw") "no-ld.so") |
| 334 | ((string=? system "avr") "no-ld.so") | 335 | ((string=? system "vc4-elf") "no-ld.so") |
| 335 | ((string=? system "propeller-elf") "no-ld.so") | 336 | |
| 336 | ((string=? system "i686-mingw") "no-ld.so") | 337 | (else (error "dynamic linker name not known for this system" |
| 337 | ((string=? system "x86_64-mingw") "no-ld.so") | 338 | system))))) |
| 338 | ((string=? system "vc4-elf") "no-ld.so") | ||
| 339 | |||
| 340 | (else (error "dynamic linker name not known for this system" | ||
| 341 | system)))) | ||
| 342 | 339 | ||
| 343 | 340 | ||
| 344 | ;;; | 341 | ;;; |
