diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-08-29 19:16:36 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-09-01 23:27:34 +0300 |
commit | 589afea9e36c75ffe291d89301025b554624c198 (patch) | |
tree | 36652aaaab28861fa8ac5ab4b03c3722eaef2ca5 | |
parent | a977900d76b7585c401222a3ce8bbb82e5f6da45 (diff) | |
download | guix-589afea9e36c75ffe291d89301025b554624c198.tar.gz guix-589afea9e36c75ffe291d89301025b554624c198.zip |
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
-rw-r--r-- | gnu/packages/databases.scm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 3bcade03f8..106d6372ee 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -2972,6 +2972,11 @@ database.") (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 |