[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/19: gnu: checkpolicy: Fix cross-compilation.
From: |
guix-commits |
Subject: |
05/19: gnu: checkpolicy: Fix cross-compilation. |
Date: |
Mon, 3 Feb 2020 09:30:24 -0500 (EST) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 2401678f56695b80b5a46d2aef931afcde278c2c
Author: Marius Bakke <address@hidden>
AuthorDate: Mon Jan 27 23:07:23 2020 +0100
gnu: checkpolicy: Fix cross-compilation.
* gnu/packages/selinux.scm (checkpolicy)[arguments]: Check
for (%CURRENT-TARGET-SYSTEM) and adjust the "CC" flag accordingly.
---
gnu/packages/selinux.scm | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/selinux.scm b/gnu/packages/selinux.scm
index 5c0cbfa..1502d16 100644
--- a/gnu/packages/selinux.scm
+++ b/gnu/packages/selinux.scm
@@ -106,12 +106,17 @@ boolean settings).")
(arguments
`(#:tests? #f ; there is no check target
#:make-flags
- (let ((out (assoc-ref %outputs "out")))
+ (let ((out (assoc-ref %outputs "out"))
+ (target ,(%current-target-system)))
(list (string-append "PREFIX=" out)
(string-append "LIBSEPOLA="
(assoc-ref %build-inputs "libsepol")
"/lib/libsepol.a")
- "CC=gcc"))
+ (string-append "CC="
+ (if target
+ (string-append (assoc-ref %build-inputs
"cross-gcc")
+ "/bin/" target "-gcc")
+ "gcc"))))
#:phases
(modify-phases %standard-phases
(delete 'configure)
- branch core-updates updated (0684a2f -> 584d08c), guix-commits, 2020/02/03
- 05/19: gnu: checkpolicy: Fix cross-compilation.,
guix-commits <=
- 02/19: gnu: llvm@3: Do not inherit 'install-opt-viewer' phase., guix-commits, 2020/02/03
- 03/19: gnu: libaio: Fix cross-compilation., guix-commits, 2020/02/03
- 06/19: gnu: RHash: Move custom configure logic to #:configure-flags., guix-commits, 2020/02/03
- 08/19: gnu: ninja: Update to 1.10.0., guix-commits, 2020/02/03
- 09/19: gnu: OpenLDAP: Update to 2.4.49., guix-commits, 2020/02/03
- 10/19: gnu: SQLite: Update to 3.31.1., guix-commits, 2020/02/03
- 14/19: gnu: pciutils: Update to 3.6.4., guix-commits, 2020/02/03
- 04/19: gnu: libsepol: Fix cross-compilation., guix-commits, 2020/02/03
- 15/19: gnu: python-pytest: Update to 5.3.5., guix-commits, 2020/02/03
- 18/19: gnu: libtasn1: Update to 4.16.0., guix-commits, 2020/02/03