I am not sure this won't fail in certain cases, but in option 2) you can
try making a
/mingw63 as a symbolic link to D:\unix_env\mingw. to do that you need to
run an MSYS shell as administrator and
export MSYS=winsymlinks:nativestrict
prior to invoking
"ln -s /d/unix_env/mingw /mingw64"
(practice this command first, to be sure that it will work as expected).
Alternatively, you could use this the other way by making
/d/unix_env/mingw a symbolic link to /mingw64.
greg@Homerw7 MSYS ~
$ echo $MSYS
winsymlinks:nativestrict
greg@Homerw7 MSYS /d/mingw-w64
$ ln -s /mingw64 mingw64
greg@Homerw7 MSYS /d/mingw-w64
$ ls mingw64/
bin/ cmake-3.0/ cmake-3.2.3/ doc/ include/ locale/
share/ var/
bsd-xdr-mingw64/ cmake-3.0.2/ cmake-3.3.2/ etc/ lib/ mingw64/
ssl/ x86_64-w64-mingw32/
greg@Homerw7 MSYS /d/mingw-w64
$ ls -lat
total 127868
drwxr-xr-x 1 greg None 0 Sep 2 14:49 ./
lrwxrwxrwx 1 greg None 14 Sep 2 14:49 mingw64 -> /msysC/mingw64/
drwxr-xr-x 1 greg None 0 Aug 15 16:01 ../
>From CMD.exe:
D:\mingw-w64>dir
Volume in drive D is D VOLUME
09/02/2018 02:49 PM <SYMLINKD> mingw64 [C:\msys64\mingw64]
On Thu, Aug 30, 2018 at 8:07 AM Иван Трусков <tru...@gmail.com> wrote:
> Hello!
> For somewhat historic reasons i ended up with mingw64 environment built
> outside of msys2's mingw64 folder. Currently i have it in
> D:\unix_env\mingw, and i would like to avoid moving it for the fear of
> messing up pkg-config and libtool scripts
>
> How can one do these 2 things:
> 1) change PATH by adding several folders to it when msys shell is launched
> in mingw64 mode?
> 2) make path /mingw64 in msys shell resolve to some path other then
> mingw64 subfolder of msys2 installation?
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Msys2-users mailing list
> Msys2-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/msys2-users
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Msys2-users mailing list
Msys2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msys2-users