gnu: bdb-4.8: Fix configure on powerpc64le-linux.

* gnu/packages/dbm.scm (bdb-4.8)[arguments]: Modify 'configure phase to append
"--build=powerpc64le-unknown-linux-gnu" to configure's flags when compiling for
powerpc64le-linux.

Signed-off-by: Chris Marusich <cmmarusich@gmail.com>
This commit is contained in:
Leo Le Bouter 2021-02-07 17:47:32 +01:00 committed by Chris Marusich
parent 638bfff853
commit 6ce82781c0
No known key found for this signature in database
GPG key ID: DD409A15D822469D

View file

@ -5,6 +5,7 @@
;;; Copyright © 2017, 2018 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2018 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
;;; Copyright © 2021 Leo Le Bouter <lle-bout@zaclys.net>
;;;
;;; This file is part of GNU Guix.
;;;
@ -76,6 +77,11 @@ (define-public bdb-4.8
'("--build=aarch64-unknown-linux-gnu")
'())
;; Bdb doesn't recognize powerpc64le as an architecture.
,@(if (string=? "powerpc64le-linux" (%current-system))
'("--build=powerpc64le-unknown-linux-gnu")
'())
,@(if (%current-target-system) ; cross building
'((string-append "--host=" target))
'())