Re: [AD] Issues when building MSVC Allegro using Cygwin

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> It appears that when mkdir in MinGW without MSYS is called, it is callig 
> the DOS mkdir command, and when MSYS is installed, it is calling the 
> UNIX mkdir command.
> 
> I've done some research of my own, and in DOS (both W98SE and W2K 
> DOSboxes), DOS's mkdir is called when invoked from the command-line - 
> even if DJGPP's mkdir.exe is in the searchpath. However, the makefile 
> calls DJGPP's mkdir if it's installed.
> 
> DOS's mkdir is completely intollerant of forward-slashes and gives one 
> of these two errors: "Invalid switch - /BAR" or "The syntax of the 
> command is incorrect"
> 
> DJGPP's mkdir (which can be invoked from the command-line by renaming 
> mkdir.exe) can handle both forward-slashes and backslashes.
> 
> However, Cygwin's mkdir is a different story. As you would expect with a 
> UNIX utility, forward slashes work OK, but with backslashes, the 
> directories are appended to make a single name eg. 'mkdir foo\bar' 
> creates a directory called 'foobar'. This is because it is treating the 
> backslash as an escape character, and '\b' translates to 'b'.
> 
>  From the behaviour you've shown above, it appears that MSYS's mkdir 
> command behaves like Cygwin's, and not DJGPP's.
> 
> I think that in MinGW without MSYS, we should only support building 
> without UNIX_TOOLS, and with MSYS installed, only support building with 
> UNIX_TOOLS. In Cygwin, only building with UNIX_TOOLS is supported. DJGPP 
> appears to be able to handle both.

What a mess! :o
Does anyone have ideas on how to clean this up a bit?
would it be possibel to always use the alternate DOS md command instead of 
mkdir in DOS/Windows to avoid the issue?

Evert




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/