[Zlib-devel] zlib 1.2.4 released
Volker Grabsch
vog at notjusthosting.com
Fri Mar 12 07:25:43 EST 2010
Vincent Torri <vtorri at univ-evry.fr> schrieb:
> would it be possible, for cross-compilation to add a TARGET variable in
> Makefile.gcc ? something like:
>
> TARGET =
>
> CC = $(TARGET)gcc
> AR = $(TARGET)ar
> RC = $(TARGET)windres
> STRIP = $(TARGET)strip
>
> hence, for cross-compilation, we would just do (for example)
>
> make -f win32/Makefile.gcc TARGET=i586-mingw32msvc-
I generally agree, but I think the term "TARGET" is confusing in this
context. In your example, the "target" (or more correctly, the "host")
is "i586-mingw32msvc", without the trailing dash "-".
I'd prefer the term "CROSS" for that matter:
make CROSS=i586-mingw32msvc-
Alternatively, one could use the TARGET variable in a way that it
doesn't need the trailing dash "-".
Also, it would be great if that mechanism would also become part of
the main Makefile, because Windows is not the only target for cross
compiling.
Even better, there could be a ./configure parameter for that:
./configure --target=i586-mingw32msvc
Or, to be a little more exact, and to be compatible with other
configure scripts:
./configure --host=i586-mingw32msvc
Greets,
Volker
--
Volker Grabsch
---<<(())>>---
Administrator
NotJustHosting GbR
More information about the Zlib-devel
mailing list