[PATCH] Use correct CWARNFLAGS when cross compiling

Dan Nicholson dbn.lists at gmail.com
Mon Jun 8 06:34:04 PDT 2009


On Mon, Jun 8, 2009 at 6:17 AM, Jon TURNEY<jon.turney at dronecode.org.uk> wrote:
> Rather than checking the version of some random gcc which happens to be in
> the path to determine which warning flags are supported, we should check the
> gcc we are going to use for the build
>
> For example, when cross-compiling, if the host gcc is >= 3.4 but the
> cross-compiler gcc is not, this will cause unsupported warning flags to be
> used
>
> This seems to work, but I don't know enough autofoolery to be sure this is
> right...

That's definitely the right thing to do.

--
Dan


More information about the xorg-devel mailing list