diff options
| author | Leo Le Bouter <lle-bout@zaclys.net> | 2021-02-09 06:10:02 +0100 |
|---|---|---|
| committer | Chris Marusich <cmmarusich@gmail.com> | 2021-03-23 23:19:57 -0700 |
| commit | b50f42680352213beb64c248c1af2f9dcc1612fc (patch) | |
| tree | 26fd4402e0e41aba29fa43a99f6ff82fb62ad5b1 /gnu/packages/elf.scm | |
| parent | 1a0f4013d33535ed9b8518cfb3ac502f48132fd8 (diff) | |
gnu: libelf: Fix compilation for powerpc64le-linux.
* gnu/packages/elf.scm (libelf)[arguments]: Modify replacement 'configure phase
to invoke "./configure" with "--host=powerpc64le-unknown-linux-gnu" on
powerpc64le-linux.
Signed-off-by: Chris Marusich <cmmarusich@gmail.com>
Diffstat (limited to 'gnu/packages/elf.scm')
| -rw-r--r-- | gnu/packages/elf.scm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/packages/elf.scm b/gnu/packages/elf.scm index 2e21cab48d1..aab912648b2 100644 --- a/gnu/packages/elf.scm +++ b/gnu/packages/elf.scm | |||
| @@ -8,6 +8,7 @@ | |||
| 8 | ;;; Copyright © 2018, 2020 Marius Bakke <mbakke@fastmail.com> | 8 | ;;; Copyright © 2018, 2020 Marius Bakke <mbakke@fastmail.com> |
| 9 | ;;; Copyright © 2020 Mark Wielaard <mark@klomp.org> | 9 | ;;; Copyright © 2020 Mark Wielaard <mark@klomp.org> |
| 10 | ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de> | 10 | ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de> |
| 11 | ;;; Copyright © 2021 Leo Le Bouter <lle-bout@zaclys.net> | ||
| 11 | ;;; | 12 | ;;; |
| 12 | ;;; This file is part of GNU Guix. | 13 | ;;; This file is part of GNU Guix. |
| 13 | ;;; | 14 | ;;; |
| @@ -211,6 +212,10 @@ static analysis of the ELF binaries at hand.") | |||
| 211 | (setenv "CONFIG_SHELL" (which "bash")) | 212 | (setenv "CONFIG_SHELL" (which "bash")) |
| 212 | (invoke "./configure" | 213 | (invoke "./configure" |
| 213 | (string-append "--prefix=" out) | 214 | (string-append "--prefix=" out) |
| 215 | ,@(if (string=? "powerpc64le-linux" | ||
| 216 | (%current-system)) | ||
| 217 | '("--host=powerpc64le-unknown-linux-gnu") | ||
| 218 | '()) | ||
| 214 | ,@(if (string=? "aarch64-linux" | 219 | ,@(if (string=? "aarch64-linux" |
| 215 | (%current-system)) | 220 | (%current-system)) |
| 216 | '("--host=aarch64-unknown-linux-gnu") | 221 | '("--host=aarch64-unknown-linux-gnu") |
