aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Pierre De Jesus DIAZ <jean@foundation.xyz>2024-04-12 12:53:00 +0200
committerChristopher Baines <mail@cbaines.net>2024-04-15 10:09:36 +0100
commitffd1d0c2d486b9de35706ca73a4e89177114e4de (patch)
tree15b0eb73529595d1a553c2265e9ddeaa71d804f1
parent4dec6e9fb74a688e0297b127773b88a699531785 (diff)
downloadguix-ffd1d0c2d486b9de35706ca73a4e89177114e4de.tar.gz
guix-ffd1d0c2d486b9de35706ca73a4e89177114e4de.zip
gnu: cross-gcc-patches: Avoid patch for GCC 13+.
* gnu/packages/cross-base.scm (cross-gcc-patches): Avoid gcc-4.9.3-mingw-gthr-default.patch patch for GCC 13+ versions since it does not apply. Change-Id: I4bb14d687c53733d77099a761844815900b1266a Signed-off-by: Christopher Baines <mail@cbaines.net>
-rw-r--r--gnu/packages/cross-base.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index 2d79e0acf6..e62402a09e 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -250,7 +250,9 @@ base compiler and using LIBC (which may be either a libc package or #f.)"
;; Patch by Qualcomm needed to build the ath9k-htc firmware.
(search-patches "ath9k-htc-firmware-gcc.patch"))
((target-mingw? target)
- (append (search-patches "gcc-4.9.3-mingw-gthr-default.patch")
+ (append (if (not (version>=? (package-version xgcc) "13.0"))
+ (search-patches "gcc-4.9.3-mingw-gthr-default.patch")
+ '())
(if (version>=? (package-version xgcc) "7.0")
(search-patches "gcc-7-cross-mingw.patch")
'())))