gnu: cross-base: Apply gcc 6 patch to gcc >= 6.

* gnu/packages/cross-base.scm (cross-gcc): Apply gcc 6 patch to gcc >= 6.
This commit is contained in:
Danny Milosavljevic 2018-01-20 20:25:36 +01:00
parent f074f5e88c
commit e32d302474
No known key found for this signature in database
GPG Key ID: E71A35542C30BAA5
1 changed files with 3 additions and 1 deletions

View File

@ -202,7 +202,9 @@ target that libc."
(patches (patches
(append (append
(origin-patches (package-source xgcc)) (origin-patches (package-source xgcc))
(cons (search-patch "gcc-cross-environment-variables.patch") (cons (if (version>=? (package-version xgcc) "6.0")
(search-patch "gcc-6-cross-environment-variables.patch")
(search-patch "gcc-cross-environment-variables.patch"))
(cross-gcc-patches target)))) (cross-gcc-patches target))))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet