gnu: gcc@11: Patch libpthread on GNU/Hurd.

* gnu/packages/gcc.scm (gcc-11)[arguments]: Add 'patch-hurd-libpthread'
phase.
* gnu/packages/patches/gcc-11-libstdc++-hurd-libpthread.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Josselin Poiret 2023-03-20 23:10:38 +01:00 committed by Ludovic Courtès
parent bbb849f11f
commit 6cdd444a56
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5
3 changed files with 75 additions and 1 deletions

View file

@ -706,7 +706,18 @@ It also includes runtime support libraries for these languages.")
"gcc-10-tree-sra-union-handling.patch"))
(modules '((guix build utils)))
(snippet gcc-canadian-cross-objdump-snippet)))
(arguments
(substitute-keyword-arguments (package-arguments gcc-8)
((#:phases phases #~%standard-phases)
(if (target-hurd?)
#~(modify-phases #$phases
(add-after 'unpack 'patch-hurd-libpthread
(lambda _
(define patch
#$(local-file
(search-patch "gcc-11-libstdc++-hurd-libpthread.patch")))
(invoke "patch" "--force" "-p1" "-i" patch))))
phases))))
(properties
`((compiler-cpu-architectures
("aarch64" ,@%gcc-11-aarch64-micro-architectures)