[x264-devel] Re: [PATCH] crosscompilation support

Bernhard Rosenkraenzer bero at arklinux.org
Thu Oct 27 19:56:42 CEST 2005


On Thursday, 27. October 2005 19:50, Måns Rullgård wrote:
> >    The commonly used flag to set the target architecture is --host,
> > maybe you should use it instead of --crosscompile.
>
> Don't you mean --target, --host being the machine you are building on?

No, --host is right, the machine you're building on is --build.

--build: Machine you're building on
--host: Machine you're building for
--target: Machine the program being compiled will generate code for

e.g. you can do weird things like compiling gcc with
--build=i686-ark-linux --host=ppc-freebsd --target=armv5te-netbsd

This would (on an x86 Linux box) generate a compiler that runs on PPC FreeBSD 
and produces binaries for NetBSD running on ARM.

In the case of x264, --target wouldn't have an effect because x264 doesn't 
generate code.

-- 
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the x264-devel mailing list