From b50f42680352213beb64c248c1af2f9dcc1612fc Mon Sep 17 00:00:00 2001 From: Leo Le Bouter Date: Tue, 9 Feb 2021 06:10:02 +0100 Subject: 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 --- gnu/packages/elf.scm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/elf.scm b/gnu/packages/elf.scm index 2e21cab48d..aab912648b 100644 --- a/gnu/packages/elf.scm +++ b/gnu/packages/elf.scm @@ -8,6 +8,7 @@ ;;; Copyright © 2018, 2020 Marius Bakke ;;; Copyright © 2020 Mark Wielaard ;;; Copyright © 2020 Michael Rohleder +;;; Copyright © 2021 Leo Le Bouter ;;; ;;; This file is part of GNU Guix. ;;; @@ -211,6 +212,10 @@ (define-public libelf (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") -- cgit v1.2.3