[Xorg-driver-geode] proposal: always build with -march=geode

Gaetan Nadon memsize at videotron.ca
Tue Jun 22 14:04:59 PDT 2010


On Tue, 2010-06-22 at 23:41 +0300, Martin-Éric Racine wrote:

> On Tue, Jun 22, 2010 at 11:27 PM, Gaetan Nadon <memsize at videotron.ca> wrote:
> > On Tue, 2010-06-22 at 22:12 +0300, Martin-Éric Racine wrote:
> >
> > In addition to exiting gracefully with a warning at ./configure time
> > if the build host is non-x86, what if we enforced -march=geode if GCC
> >
> > You may want to look at AX_GCC_X86_CPUID and AX_GCC_ARCHFLAG which would do
> > that for you.
> > http://www.gnu.org/software/autoconf-archive/The-Macros.html#The-Macros
> 
> Unless I misunderstood the description, these macros guess the target
> based on the build host's architecture?


They use host_cpu (e.g. i*86) first and then look at the cpuid. You
might have cross-compiling in mind. 
Generally speaking, there is not much one can do in configure.ac for
cross-compiling.

> 
> Martin-Éric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-driver-geode/attachments/20100622/82e9bfad/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-driver-geode/attachments/20100622/82e9bfad/attachment.pgp>


More information about the Xorg-driver-geode mailing list