[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
61/66: gnu: cross-base: Make it aware of non-Linux (ie. Hurd) systems.
From: |
Manolis Fragkiskos Ragkousis |
Subject: |
61/66: gnu: cross-base: Make it aware of non-Linux (ie. Hurd) systems. |
Date: |
Thu, 21 May 2015 12:52:11 +0000 |
phant0mas pushed a commit to branch wip-hurd
in repository guix.
commit fea6dde1fde45aedd3d1663f830a23219ff7c93b
Author: Marek Benc <address@hidden>
Date: Thu Feb 5 17:01:14 2015 +0100
gnu: cross-base: Make it aware of non-Linux (ie. Hurd) systems.
* gnu/packages/cross-base.scm (cross-gcc-arguments): Make 'set-cross-path
aware of the Hurd.
Signed-off-by: Manolis Ragkousis <address@hidden>
---
gnu/packages/cross-base.scm | 30 ++++++++++++++++++++++++------
1 files changed, 24 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index 18a2512..e54bee4 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -147,21 +147,39 @@ may be either a libc package or #f.)"
`(alist-cons-before
'configure 'set-cross-path
(lambda* (#:key inputs #:allow-other-keys)
- ;; Add the cross Linux headers to CROSS_CPATH, and remove them
+ ;; Add the cross kernel headers to CROSS_CPATH, and remove
them
;; from CPATH.
(let ((libc (assoc-ref inputs "libc"))
(linux (assoc-ref inputs
- "libc/linux-headers")))
+ "libc/linux-headers"))
+ (mach (assoc-ref inputs
+ "libc/cross-gnumach-headers"))
+ (hurd (assoc-ref inputs
+ "libc/cross-hurd-headers"))
+ (hurd-minimal (assoc-ref inputs
+ "libc/cross-hurd-minimal")))
(define (cross? x)
;; Return #t if X is a cross-libc or cross Linux.
(or (string-prefix? libc x)
- (string-prefix? linux x)))
+ (if linux (string-prefix? linux x) #f)
+ (if hurd (string-prefix? hurd x) #f)
+ (if mach (string-prefix? mach x) #f)
+ (if hurd-minimal (string-prefix? hurd-minimal x) #f)))
(setenv "CROSS_CPATH"
- (string-append libc "/include:"
- linux "/include"))
+ (string-append libc "/include"
+ (if linux
+ (string-append ":" linux "/include")
+ "")
+ (if hurd
+ (string-append ":" hurd "/include"
+ ":" mach "/include")
+ "")))
(setenv "CROSS_LIBRARY_PATH"
- (string-append libc "/lib"))
+ (string-append libc "/lib"
+ (if hurd-minimal
+ (string-append ":" hurd-minimal "/lib")
+ "")))
(let ((cpath (search-path-as-string->list
(getenv "CPATH")))
- 42/66: gnu: Add libwpg., (continued)
- 42/66: gnu: Add libwpg., Manolis Fragkiskos Ragkousis, 2015/05/21
- 41/66: guix: build: Fix indentation for --sources in help output., Manolis Fragkiskos Ragkousis, 2015/05/21
- 46/66: search-paths: Add 'evaluate-search-paths', from (guix scripts package)., Manolis Fragkiskos Ragkousis, 2015/05/21
- 45/66: Move search path specifications to (guix search-paths)., Manolis Fragkiskos Ragkousis, 2015/05/21
- 51/66: gnu: Add soil., Manolis Fragkiskos Ragkousis, 2015/05/21
- 50/66: records: Make 'make-syntactic-constructor' available at load/eval/expand., Manolis Fragkiskos Ragkousis, 2015/05/21
- 56/66: gnu: vcftools: Remove "-m64" from CFLAGS., Manolis Fragkiskos Ragkousis, 2015/05/21
- 53/66: gnu: Add bluez., Manolis Fragkiskos Ragkousis, 2015/05/21
- 55/66: gnu: fltk: Fix undefined symbol errors for shared libraries., Manolis Fragkiskos Ragkousis, 2015/05/21
- 60/66: gnu: bootstrap: Add the location of where ld.so is located on Hurd systems., Manolis Fragkiskos Ragkousis, 2015/05/21
- 61/66: gnu: cross-base: Make it aware of non-Linux (ie. Hurd) systems.,
Manolis Fragkiskos Ragkousis <=
- 54/66: gnu: ardour: Add library dirs to RUNPATH., Manolis Fragkiskos Ragkousis, 2015/05/21
- 57/66: environment: Use (guix search-paths)., Manolis Fragkiskos Ragkousis, 2015/05/21
- 64/66: gnu: hurd: Pass --build to gnumach-headers when not cross building., Manolis Fragkiskos Ragkousis, 2015/05/21
- 63/66: gnu: acl: Fix i686-gnu build., Manolis Fragkiskos Ragkousis, 2015/05/21
- 65/66: gnu: hurd: Pass --build to hurd-headers when not cross building., Manolis Fragkiskos Ragkousis, 2015/05/21
- 62/66: gnu: gcc: Also substitute the dynamic linker name for GNU (ie. Hurd) systems., Manolis Fragkiskos Ragkousis, 2015/05/21
- 58/66: gnu: base: Add glibc-hurd and hurd-minimal., Manolis Fragkiskos Ragkousis, 2015/05/21
- 52/66: gnu: Add libical., Manolis Fragkiskos Ragkousis, 2015/05/21
- 59/66: gnu: cross-base: Add support to cross-build libc for GNU/Hurd., Manolis Fragkiskos Ragkousis, 2015/05/21
- 66/66: gnu: hurd: Add flex as an input to mig., Manolis Fragkiskos Ragkousis, 2015/05/21