mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: bdb: Fix cross-compilation.
* gnu/packages/dbm.scm (bdb-4.8)[arguments]: Pass host argument to configure when cross-compiling.
This commit is contained in:
parent
213e1764f4
commit
63539587bc
1 changed files with 5 additions and 1 deletions
|
@ -55,7 +55,7 @@ (define-public bdb-4.8
|
|||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(replace 'configure
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(lambda* (#:key target outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out"))
|
||||
(doc (assoc-ref outputs "doc")))
|
||||
;; '--docdir' is not honored, so we need to patch.
|
||||
|
@ -74,6 +74,10 @@ (define-public bdb-4.8
|
|||
'("--build=aarch64-unknown-linux-gnu")
|
||||
'())
|
||||
|
||||
,@(if (%current-target-system) ; cross building
|
||||
'((string-append "--host=" target))
|
||||
'())
|
||||
|
||||
;; Remove 7 MiB of .a files.
|
||||
"--disable-static"
|
||||
|
||||
|
|
Loading…
Reference in a new issue