Jan Nieuwenhuizen writes:

Hello again,

> I've reset and updated wip-mingw onto latest main:
>
>     https://git.savannah.gnu.org/cgit/guile.git/log/?h=wip-mingw

If you tried this with a recent Guix, you probably got a segfault.  I
finally found that compiling with -flto (--enable-lto) creates broken
DLLs with binutils > 2.35.2.  This is "fixed" by using --disable-lto
when compiling for mingw.

So, also with a recent Guix, this should work:

WINEPATH=$(guix shell wine64 -- winepath -w                                    \
   $(echo $(guix gc -R                                                         \
                 $(GUIX_PACKAGE_PATH=guix guix build                           \
                                    --target=x86_64-w64-mingw32 guile-mingw))) \
              | sed 's,$,/bin,g' | tr '\n' ';')                                \
       guix shell wine64 -- wine                                               \
       $(GUIX_PACKAGE_PATH=guix guix build --target=x86_64-w64-mingw32         \
                          guile-mingw)/bin/guile.exe                           \
       -c '(format #t "Hello ~a world!\n" %host-type)'

Greetings,
Janneke

-- 
Jan Nieuwenhuizen <jann...@gnu.org>  | GNU LilyPond https://lilypond.org
Freelance IT https://JoyOfSource.com | AvatarĀ® https://AvatarAcademy.com

Reply via email to