guix: native GCC 10 toolchain for Linux builds

24.x
fanquake 3 years ago
parent 88fd3f81ec
commit 6b9d53e1ff
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1

@ -148,7 +148,7 @@ chain for " target " development."))
(define* (make-bitcoin-cross-toolchain target (define* (make-bitcoin-cross-toolchain target
#:key #:key
(base-gcc-for-libc gcc-7) (base-gcc-for-libc base-gcc)
(base-kernel-headers base-linux-kernel-headers) (base-kernel-headers base-linux-kernel-headers)
(base-libc (make-glibc-without-ssp (make-glibc-without-werror glibc-2.24))) (base-libc (make-glibc-without-ssp (make-glibc-without-werror glibc-2.24)))
(base-gcc (make-gcc-rpath-link base-gcc))) (base-gcc (make-gcc-rpath-link base-gcc)))
@ -586,6 +586,9 @@ inspecting signatures in Mach-O binaries.")
automake automake
pkg-config pkg-config
bison bison
;; Native GCC 10 toolchain
gcc-toolchain-10
(list gcc-toolchain-10 "static")
;; Scripting ;; Scripting
perl perl
python-3 python-3
@ -596,26 +599,17 @@ inspecting signatures in Mach-O binaries.")
(let ((target (getenv "HOST"))) (let ((target (getenv "HOST")))
(cond ((string-suffix? "-mingw32" target) (cond ((string-suffix? "-mingw32" target)
;; Windows ;; Windows
(list ;; Native GCC 10 toolchain (list zip
gcc-toolchain-10
(list gcc-toolchain-10 "static")
zip
(make-mingw-pthreads-cross-toolchain "x86_64-w64-mingw32") (make-mingw-pthreads-cross-toolchain "x86_64-w64-mingw32")
(make-nsis-for-gcc-10 nsis-x86_64) (make-nsis-for-gcc-10 nsis-x86_64)
osslsigncode)) osslsigncode))
((string-contains target "-linux-") ((string-contains target "-linux-")
(list ;; Native GCC 7 toolchain (list (cond ((string-contains target "riscv64-")
gcc-toolchain-7
(list gcc-toolchain-7 "static")
(cond ((string-contains target "riscv64-")
(make-bitcoin-cross-toolchain target (make-bitcoin-cross-toolchain target
#:base-libc (make-glibc-without-werror glibc-2.27/bitcoin-patched) #:base-libc (make-glibc-without-werror glibc-2.27/bitcoin-patched)
#:base-kernel-headers base-linux-kernel-headers)) #:base-kernel-headers base-linux-kernel-headers))
(else (else
(make-bitcoin-cross-toolchain target))))) (make-bitcoin-cross-toolchain target)))))
((string-contains target "darwin") ((string-contains target "darwin")
(list ;; Native GCC 10 toolchain (list clang-toolchain-10 binutils cmake xorriso python-signapple))
gcc-toolchain-10
(list gcc-toolchain-10 "static")
clang-toolchain-10 binutils cmake xorriso python-signapple))
(else '()))))) (else '())))))

Loading…
Cancel
Save