I was wondering if there is a way in MSYS2 to specify the base MinGW/MinGW64 directory?
In MSYS (i.e., MSYS-1), after installing MSYS, it knows that the directory structure is, e.g., /c/mingw/msys/...
, and if you install a mingw package using mingw-get
, the installed binary goes to /c/mingw/bin
. I think this might be because there is /mingw
mount in the default /etc/fsab
.
Now, when I do a similar operation under MSYS2/MinGW64 with MSYS2 at /c/mingw/msys64
, the binary isn't installed the /c/mingw/bin
anymore. For example, if I install clang
as follows:
pacman -S mingw-w64-x86_64-clang
the binary is installed to:
/c/mingw/msys64/mingw64/bin/clang.exe
as if MSYS2
were creating another mingw64 installation within itself (with bin/lib/etc/share ...). This confuses MinGW64, as it reports that clang cannot be found. I know I can add another path, but it's rather weird to have one MinGW installation at the root, and another inside a subfolder of MSYS2. And I suspect this could cause inconsistency in the tool-chain in the future.
My question is, is there a way to let MSYS2
install MinGW packages to the MinGW directory tree as with MSYS
?
Thanks