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:
Efraim Flashner 2024-08-29 19:16:36 +03:00
parent a977900d76
commit 589afea9e3
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -2972,6 +2972,11 @@ (define-public lmdb
(build-system gnu-build-system)
(arguments
`(#: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
(modify-phases %standard-phases
(replace 'configure