mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
bbb849f11f
commit
6cdd444a56
3 changed files with 75 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue