Re: separate RPMOPTS for c and c++?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Apr 24, 2005 at 03:02:20PM -0400, sean wrote:
> On fc4t am64, I've set rpmopts as:
> 
> optflags: x86_64  -O3 -fPIC -ffast-math -fomit-frame-pointer 
> -funit-at-a-time -mtune=athlon64 -ftree-vectorize 
> -fvisibility-inlines-hidden

And the reason for that magic choice is?
E.g. x86-64 has -fomit-frame-pointer by default, -funit-at-a-time
is also the default for -O2 and above.  Building all code PIC is a
de-optimization (although on x86-64 not a major one,the PIC cost is
not as high on x86-64 as on other arches), -O3 is for the vast majority
of code worse than -O2 as well.  -mtune=athlon64 is on by default too.

> Now -fvisibility-inlines-hidden is only for g++. It 
> generates a  warning mesage for gcc. Is there a way of 
> setting the CFLAGS  differently from CXXFLAGS?

You'd need to hack up %configure macro etc.

	Jakub


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux