lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I think the cygwin folks are behind the idea that there should not be any "windows" visible once you are using it. It's not full abstraction, but that's the goal (IMHO).

For example tcl/tk used to be plain win32 api, while now it's X11 (so you need to startxwin before using it).

	Might not be a bad change what Patrick suggests.

On 3/16/2012 3:14 PM, Mike Pall wrote:
Patrick Rapin wrote:
This doesn't work on Cygwin, because library file names are different
from Linux.
On this platform, you have to provide the full path name.

Looking at clib_extname in lj_clib.c, we see that ffi.load tries to
open libXXX.dylib on MacOS or libXXX.so on other Posix platforms.
But on Cygwin, the libraries are named cygXXX.dll (and are placed in
/bin directory), like /bin/cygz.dll
So to support that platform, CLIB_SOEXT must me defined to ".dll", and
the test for the "lib" prefix must be adapted to the "cyg" prefix.

But that'd foil any attempt to load (true) Windows DLLs, no?
And I bet most programs ported to Cygwin have to use a mixture of
POSIX and Windows functionality.

Anyway, Cygwin is a mess. MinGW works just fine and is almost
always the better choice. Ok, so I'll take a tested patch, but
only if it doesn't cause any other regressions.

--Mike