mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-27 04:59:27 -05:00
gnu: lmdb: Fix cross-compiling.
* gnu/packages/databases.scm (lmdb)[arguments]: When cross-compiling use the correct CC and AR to produce cross-compiled libraries. Change-Id: Ie93fe88eff1da4949dfdbdedabc670fa56cbc1c9
This commit is contained in:
parent
a977900d76
commit
589afea9e3
1 changed files with 5 additions and 0 deletions
|
@ -2972,6 +2972,11 @@ (define-public lmdb
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:test-target "test"
|
`(#:test-target "test"
|
||||||
|
;; TODO: Make this unconditional on core-updates.
|
||||||
|
,@(if (%current-target-system)
|
||||||
|
`(#:make-flags `(,(string-append "CC=" ,(cc-for-target))
|
||||||
|
,(string-append "AR=" ,(ar-for-target))))
|
||||||
|
'())
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
|
|
Loading…
Reference in a new issue