gnu: cross-base: Turn '%xgcc' into a macro.
Previously: ./pre-inst-env guile -c '(use-modules (gnu packages gcc))' would fail due to circular dependencies. * gnu/packages/cross-base.scm (%xgcc): Turn into a macro.
This commit is contained in:
parent
0f3847bfd8
commit
be99170ddb
1 changed files with 6 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2013, 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
|
;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
|
||||||
;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
|
;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
|
||||||
;;; Copyright © 2016 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
|
;;; Copyright © 2016 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
|
||||||
|
@ -40,10 +40,13 @@
|
||||||
cross-gcc
|
cross-gcc
|
||||||
cross-newlib?))
|
cross-newlib?))
|
||||||
|
|
||||||
(define %xgcc
|
(define-syntax %xgcc
|
||||||
;; GCC package used as the basis for cross-compilation. It doesn't have to
|
;; GCC package used as the basis for cross-compilation. It doesn't have to
|
||||||
;; be 'gcc' and can be a specific variant such as 'gcc-4.8'.
|
;; be 'gcc' and can be a specific variant such as 'gcc-4.8'.
|
||||||
gcc)
|
;;
|
||||||
|
;; Note: This is a macro so that we do not refer to 'gcc' from the top
|
||||||
|
;; level, which would lead to circular-dependency issues.
|
||||||
|
(identifier-syntax gcc))
|
||||||
|
|
||||||
(define %gcc-include-paths
|
(define %gcc-include-paths
|
||||||
;; Environment variables for header search paths.
|
;; Environment variables for header search paths.
|
||||||
|
|
Reference in a new issue