lkml.org 
[lkml]   [2009]   [Jun]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [tip:perfcounters/core] perf_counter tools: Build with native optimization

* Paul Mackerras <paulus@samba.org> wrote:

> tip-bot for Ingo Molnar writes:
>
> > perf_counter tools: Build with native optimization
> >
> > Build the tools with -march=native by default.
>
> On powerpc (RHEL5.2 on POWER5+, gcc 4.1.2), I get:
>
> CC perf.o
> cc1: error: unrecognized command line option "-march=native"
> make: *** [perf.o] Error 1

ok, i removed that.

> Is there a way to make the default CFLAGS depend on the architecture?
> We need -m64 on powerpc as well.

Would be nice to add a Makefile rule to add -m64 on all 64-bit
architectures. That would avoid having to do PowerPC-specific magic.

(But, PowerPC-specific rules would be fine too, of course.)

Ingo


\
 
 \ /
  Last update: 2009-06-05 20:45    [W:0.036 / U:0.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site