efraim pushed a commit to branch wip-ppc64le-for-master in repository guix.
commit a481341270b75567594fa6c95a8cbd0f1e2d4f68 Author: Leo Le Bouter <[email protected]> AuthorDate: Tue Feb 9 06:10:02 2021 +0100 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 <[email protected]> --- gnu/packages/elf.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/packages/elf.scm b/gnu/packages/elf.scm index 2e21cab..aab9126 100644 --- a/gnu/packages/elf.scm +++ b/gnu/packages/elf.scm @@ -8,6 +8,7 @@ ;;; Copyright © 2018, 2020 Marius Bakke <[email protected]> ;;; Copyright © 2020 Mark Wielaard <[email protected]> ;;; Copyright © 2020 Michael Rohleder <[email protected]> +;;; Copyright © 2021 Leo Le Bouter <[email protected]> ;;; ;;; This file is part of GNU Guix. ;;; @@ -211,6 +212,10 @@ static analysis of the ELF binaries at hand.") (setenv "CONFIG_SHELL" (which "bash")) (invoke "./configure" (string-append "--prefix=" out) + ,@(if (string=? "powerpc64le-linux" + (%current-system)) + '("--host=powerpc64le-unknown-linux-gnu") + '()) ,@(if (string=? "aarch64-linux" (%current-system)) '("--host=aarch64-unknown-linux-gnu")
