Hello here,
On Windows different configurations can be used to build an application.
I explain, MSYS2 provides a minimal Unix-like shell environment.
You can add if you want gcc, make, perl etc. via the 'pacman' package manager (it comes from Arch Linux).
You can use others compilers etc. if you want. The one in my MSYS2 configuration is actually buggy I think (MinGW by msys2 team). So sometimes I use other compilers and/or configurations.
If I let MSYS2 choose the compiler the build system type differs :
checking build system type... x86_64-pc-msys
checking host system type... x86_64-pc-msys
checking target system type... x86_64-pc-msys
If I choose myself, the default configuration in fact via the msys2 installation, the build system becomes:
checking build system type... x86_64-w64-mingw32
checking host system type... x86_64-w64-mingw32
checking target system type... x86_64-w64-mingw32
To build FriCAS on Windows we need an emulation of Windows filesystem conventions.The problem comes from the fact that when the $top-src-dir is defined only mingw is taken into account and not msys. The two need `pwd -W` to have the pwd correctly initialized.
Attached is a patch I would like to be applied. In this form or another but which takes account msys. A pain sometimes "oh, I have to modify and begin another time" :-).
__
Greg
PS : not tested '||' in the switch
PS2 : On Windows when you have a good config, you keep it... It's Windows after all.