Description
Here is a very small PR for starters: #218
Also related: #70
First, I think we should not try to hide "cygwin" from users, and just think of the msys2-runtime as differently configured cygwin. Otherwise reducing the difference wont really work.
While looking at the diff some questions came up:
- Should we rename things in comments as well?
There are multiple instances of this and while it's correct I'm wondering if that is worth it
diff --git a/winsup/utils/loadlib.h b/winsup/utils/loadlib.h
index c83b76478f..42ffbfdc03 100644
--- a/winsup/utils/loadlib.h
+++ b/winsup/utils/loadlib.h
@@ -13,7 +13,7 @@
#include <wchar.h>
/* Load all system libs from the windows system directory by prepending the
- full path. This doesn't work for loadling cygwin1.dll. For this case,
+ full path. This doesn't work for loadling msys-2.0.dll. For this case,
instead of prepending the path, make sure that the CWD is removed from
the DLL search path, if possible (XP SP1++, Vista++). */
static HMODULE _load_sys_library (const wchar_t *dll) __attribute__ ((used));
- Should our goal be to build the runtime under cygwin?
i.e. building under a cygwin env produces a msys2-runtime that can be copied and used to msys2.
If yes, we need to guard our changes with something different than __MSYS__
I think.
- Should our goal be that our fork also builds for cygwin if wanted?
i.e. disable all our changes via some configure flag to produce a cygwin runtime
If yes, we'd need to guard all our changes somehow. Potentially a lot work and increases the diff. Easier in C, harder in the build system.