Does etc/profile call GNUstep.sh? In my environment (which is not MSYS2 based, so I could be off with my intuition), there is this line towards the end of etc/profile:
Code: Select all
. /mingw/../devlibs/gnustep1201/System/Library/Makefiles/GNUstep.sh
The question here is, why try to build with a system that is not tested with the Oolite codebase, when there is a single-download development envrionment prepared already with everything that is needed for an immediate build within minutes?
There are a few things you need to be aware of before putting in more effort with a different development system. Some of the game's dlls have to be built specifically for Oolite, so you will probably want to build all support dlls with it as well. There is also the issue of exception handling to consider. MSYS2 will probably generate a 64-bit executable based on the SEH exception model, while all other dlls of the game's distribution - as well as the vanilla exes - are built against the SJLJ model. Attempting to mix exception models will probably result in crashes every time an exception is thrown, assuming that everything gets to the point of linking successfully.
It will be great if you get it all to build and work on MSYS2, but is it worth the hassle when there is already something that works out of the box?