nckx pushed a commit to branch master
in repository guix.
commit abdb0210bd738fafd744c229c28e92d9898fae6f
Author: Tobias Geerinckx-Rice <[email protected]>
AuthorDate: Tue May 4 11:41:07 2021 +0200
gnu: bcachefs-tools: Prepare for cross-compilation.
* gnu/packages/file-systems.scm (bcachefs-tools)[arguments]:
Use CC-FOR-TARGET and PKG-CONFIG-FOR-TARGET.
---
gnu/packages/file-systems.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm
index 46d9227..c3051b8 100644
--- a/gnu/packages/file-systems.scm
+++ b/gnu/packages/file-systems.scm
@@ -360,7 +360,8 @@ from a mounted file system.")
(list ,(string-append "VERSION=" version) ; bogus vX.Y-nogit otherwise
(string-append "PREFIX=" (assoc-ref %outputs "out"))
"INITRAMFS_DIR=$(PREFIX)/share/initramfs-tools"
- "CC=gcc"
+ ,(string-append "CC=" (cc-for-target))
+ ,(string-append "PKG_CONFIG=" (pkg-config-for-target))
"PYTEST=pytest")
#:phases
(modify-phases %standard-phases