Re: [AD] [AL] Build failure with Mingw32 and CVS |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
In message <20itm92ung.fsf@xxxxxxxxxx>, Michael Bukin writes:
>The following patch is dirty, but may fix this problem too (not
>tested).
>[...]
>- echo // no MMX > obj\mingw32\mmx.h
>- echo .text > obj\mingw32\mmxtest.s
>- echo emms >> obj\mingw32\mmxtest.s
>+ cd obj
>+ cd mingw32
>+ echo // no MMX > mmx.h
>[...]
This won't work (unless the DOS/Windows version of gnu make behaves
differently to Unix make). Each command in a makefile is executed in a
separate sub-shell, so "cd" changes the directory in the sub-shell, which
then exits, but the parent process is still in the same directory.
To use "cd", you'd have to do it like this:
cd obj;cd mingw32;echo // no MMX > mmx.h
But simply doubling the backslashes should work (though I don't have DOS or
Windows here to test it on):
echo // no MMX > obj\\mingw32\\mmx.h
Cheers,
Olly