View previous topic :: View next topic |
Author |
Message |
Quitch Apprentice
Joined: 04 Jun 2003 Posts: 151
|
Posted: Thu Aug 21, 2003 3:28 pm Post subject: make.conf CFLAGS |
|
|
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 |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
|
Back to top |
|
|
pYrania Retired Dev
Joined: 27 Oct 2002 Posts: 650 Location: Cologne - Germany
|
Posted: Thu Aug 21, 2003 3:59 pm Post subject: |
|
|
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 |
|
|
Quitch Apprentice
Joined: 04 Jun 2003 Posts: 151
|
Posted: Fri Aug 22, 2003 7:54 am Post subject: |
|
|
Thanks for the advice guys. I'll check that site out. |
|
Back to top |
|
|
Quitch Apprentice
Joined: 04 Jun 2003 Posts: 151
|
Posted: Fri Aug 22, 2003 9:05 am Post subject: |
|
|
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 |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Fri Aug 22, 2003 9:20 am Post subject: |
|
|
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 |
|
|
Quitch Apprentice
Joined: 04 Jun 2003 Posts: 151
|
Posted: Fri Aug 22, 2003 9:32 am Post subject: |
|
|
Ah, I see, thanks for that. |
|
Back to top |
|
|
pYrania Retired Dev
Joined: 27 Oct 2002 Posts: 650 Location: Cologne - Germany
|
Posted: Fri Aug 22, 2003 11:27 am Post subject: |
|
|
it was buggy in earlier versions of gcc. you can use it without fear nowadays. _________________ Markus Nigbur |
|
Back to top |
|
|
Quitch Apprentice
Joined: 04 Jun 2003 Posts: 151
|
Posted: Fri Aug 22, 2003 1:36 pm Post subject: |
|
|
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 |
|
|
pYrania Retired Dev
Joined: 27 Oct 2002 Posts: 650 Location: Cologne - Germany
|
Posted: Fri Aug 22, 2003 3:44 pm Post subject: |
|
|
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:
_________________ Markus Nigbur |
|
Back to top |
|
|
|