Fri 17 Jul 2009 05:12:17 AM UTC, comment #2:
I want to restrict the change to builds/win32/detect.mk,
but there is a possibility that builds/unix/detect.mk
should be revised too :-(.
On WINE CMD, the initial test of builds/unix/detect.mk
is_unix := $(strip $(wildcard /sbin/init) \
$(wildcard /usr/sbin/init) \
$(wildcard /hurd/auth))
defines non-empty values to is_unix.
I don't know the reason, but DIR command shows
similar difference. In Microsoft Windows XP SP2
CMD.EXE,
dir /sbin
returns simple error
Parameter format not correct - "sbin"
But, in WINE CMD,
dir /sbin
starts something like 'ls -lR'
Volume in drive C is
Volume Serial Number is 0000-0000
Directory of C:\
2009/07/16 17:11 <DIR> borland
2009/07/16 17:19 <DIR> home
2009/07/16 17:11 <DIR> MinGW
2008/09/04 16:20 <DIR> Program Files
2009/07/16 17:11 <DIR> WATCOM
2008/09/04 16:20 <DIR> windows
0 files 0 bytes
[blah blah blah]
To avoid such, I have to insert some hook
to exclude WINE CMD from the test looking
up /sbin/init etc, into builds/unix/detect.mk.
But it is ugly design.
|