Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
make.conf CFLAGS
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Quitch
Apprentice
Apprentice


Joined: 04 Jun 2003
Posts: 151

PostPosted: Thu Aug 21, 2003 3:28 pm    Post subject: make.conf CFLAGS Reply with quote

I have the CFLAGS -03 (or -O3) -pipe -march=i386 because it's already there.

Now, the comments explain the last part, but what does the rest mean?

Also, I notice that in the FAQ there appear to be a lot of different CFLAG settings. Where should I go to find what settings there are, and what they do?
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Thu Aug 21, 2003 3:53 pm    Post subject: Reply with quote

You'll find explanations using 'man g++'. There's also some information on the web, I don't remember any good source at the moment.

If you want to try some more optimization, you can have a look at
http://www.freehackers.org/gentoo/gccflags/flag_gcc3.html

There is also a list of experimental flags.
http://www.freehackers.org/gentoo/gccflags/flag_gcc3opt.html
Back to top
View user's profile Send private message
pYrania
Retired Dev
Retired Dev


Joined: 27 Oct 2002
Posts: 650
Location: Cologne - Germany

PostPosted: Thu Aug 21, 2003 3:59 pm    Post subject: Reply with quote

it's supposed to be -O3 as in Optimisation.

for cflags that fit to your cpu, have a look at http://www.freehackers.org/gentoo/gccflags/

the gcc man page provides explanations for every single flag you can select.

EDIT: i should refresh before posting ;)
_________________
Markus Nigbur
Back to top
View user's profile Send private message
Quitch
Apprentice
Apprentice


Joined: 04 Jun 2003
Posts: 151

PostPosted: Fri Aug 22, 2003 7:54 am    Post subject: Reply with quote

Thanks for the advice guys. I'll check that site out.
Back to top
View user's profile Send private message
Quitch
Apprentice
Apprentice


Joined: 04 Jun 2003
Posts: 151

PostPosted: Fri Aug 22, 2003 9:05 am    Post subject: Reply with quote

Looking at the Gentoo 1.4 section, it says for the Pentium 4 use march=pentium4... yet the install guide says there is no such entry, and you should use pentium3.

Which is right?
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Fri Aug 22, 2003 9:20 am    Post subject: Reply with quote

Quitch wrote:
Looking at the Gentoo 1.4 section, it says for the Pentium 4 use march=pentium4... yet the install guide says there is no such entry, and you should use pentium3.

afaik march=pentium4 exists, but is reported to be somehow buggy.
Back to top
View user's profile Send private message
Quitch
Apprentice
Apprentice


Joined: 04 Jun 2003
Posts: 151

PostPosted: Fri Aug 22, 2003 9:32 am    Post subject: Reply with quote

Ah, I see, thanks for that.
Back to top
View user's profile Send private message
pYrania
Retired Dev
Retired Dev


Joined: 27 Oct 2002
Posts: 650
Location: Cologne - Germany

PostPosted: Fri Aug 22, 2003 11:27 am    Post subject: Reply with quote

it was buggy in earlier versions of gcc. you can use it without fear nowadays.
_________________
Markus Nigbur
Back to top
View user's profile Send private message
Quitch
Apprentice
Apprentice


Joined: 04 Jun 2003
Posts: 151

PostPosted: Fri Aug 22, 2003 1:36 pm    Post subject: Reply with quote

Ah, I see... I have already done emerge system, if I changed make.conf now, what command would I need to use for the change to take effect?
Back to top
View user's profile Send private message
pYrania
Retired Dev
Retired Dev


Joined: 27 Oct 2002
Posts: 650
Location: Cologne - Germany

PostPosted: Fri Aug 22, 2003 3:44 pm    Post subject: Reply with quote

if you do nothin, after you changed your cfalgs, your system will compile all new packages with the changed flags, so old packages will get the new cflags only just, if you update those.

however, it is possible to recompile your complete system, in order to compile it with the new settings, but the gain isn't worse the hassle.
anyway, if you want to do it, type:
Code:
$ emerge -e world

_________________
Markus Nigbur
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum