Skip to content

Commit 7f2f35f

Browse files
committed
build: Fix gcc-cross-x86_64-w64-mingw32-10.3.0 in Guix
1 parent 7164e00 commit 7f2f35f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

contrib/guix/manifest.scm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,17 @@ desirable for building Bitcoin Core release binaries."
162162
(define (make-gcc-with-pthreads gcc)
163163
(package-with-extra-configure-variable gcc "--enable-threads" "posix"))
164164

165+
;; Required to support std::filesystem for mingw-w64 target.
166+
(define (make-gcc-without-newlib gcc)
167+
(package-with-extra-configure-variable gcc "--with-newlib" "no"))
168+
165169
(define (make-mingw-pthreads-cross-toolchain target)
166170
"Create a cross-compilation toolchain package for TARGET"
167171
(let* ((xbinutils (cross-binutils target))
168172
(pthreads-xlibc mingw-w64-x86_64-winpthreads)
169173
(pthreads-xgcc (make-gcc-with-pthreads
170174
(cross-gcc target
171-
#:xgcc (make-ssp-fixed-gcc base-gcc)
175+
#:xgcc (make-gcc-without-newlib (make-ssp-fixed-gcc base-gcc))
172176
#:xbinutils xbinutils
173177
#:libc pthreads-xlibc))))
174178
;; Define a meta-package that propagates the resulting XBINUTILS, XLIBC, and

0 commit comments

Comments
 (0)