aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Le Bouter <lle-bout@zaclys.net>2021-02-07 17:47:32 +0100
committerChris Marusich <cmmarusich@gmail.com>2021-03-23 23:19:56 -0700
commit4cc2d2aa59910fcfd057bdee162bb96989b5a523 (patch)
treeb18bfedeb29fe683ed953478d810a0fce891429d
parentbe4b1cf53bdcdc5d60d21075d668d944c11e0598 (diff)
downloadguix-4cc2d2aa59910fcfd057bdee162bb96989b5a523.tar.gz
guix-4cc2d2aa59910fcfd057bdee162bb96989b5a523.zip
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>
-rw-r--r--gnu/packages/dbm.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/dbm.scm b/gnu/packages/dbm.scm
index 82647c0c28..2dd51efb8c 100644
--- a/gnu/packages/dbm.scm
+++ b/gnu/packages/dbm.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2016, 2017, 2018, 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2017, 2018 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2018 Mark H Weaver <mhw@netris.org>
+;;; Copyright © 2021 Leo Le Bouter <lle-bout@zaclys.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -74,6 +75,11 @@
'("--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))
'())