View previous topic :: View next topic |
Author |
Message |
tommy_haaland Guru
Joined: 04 Oct 2003 Posts: 320
|
Posted: Tue Mar 22, 2005 8:49 pm Post subject: Does my /etc/make.conf seem correct ? |
|
|
Asus A7n8x, 512mb ram, amd athlon 1,8 Ghz , and here is my /etc/make.conf
Code: |
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
USE="-qt -kde gtk gnome oss alsa dvd"
ALSA_CARDS="emu10k1"
|
|
|
Back to top |
|
|
oiper Guru
Joined: 01 May 2003 Posts: 316 Location: Alabama, US
|
Posted: Tue Mar 22, 2005 9:16 pm Post subject: |
|
|
Seems fine. They say it's safe to add -pipe to your CFLAGS line.
I'm a bit more of a USE var nut, but that should work. I think most everyone, hence the descrition, wants readline though. And you may want a52 in there if you are going to watch a dvd.
USE="-qt -kde gtk gnome oss a52 alsa dvd readline" _________________ www.bearscanfly.org - Because hiking is cool |
|
Back to top |
|
|
psychomunky Guru
Joined: 02 Nov 2004 Posts: 337 Location: Canada
|
Posted: Tue Mar 22, 2005 9:22 pm Post subject: |
|
|
hehe...that is like asking the pope if God exists
The only thing that can be really "wrong" in your make.conf is specifying a non-x86 architecture in the CFLAGS, CHOST and CXXFLAGS, or specifying a non existant sound card in your ALSA_CARDS variable.
So the short answer is yes, your make.conf looks fine.
Now if you are meaning "Does my config look like it will produce a fast stable system on my architecture?" Then, the result is again yes. Your CFLAGS are pretty safe, and you have told the compiler to perform safe optimizations for your processor (via the -march=athon-xp param). You can look at the gcc docs to find other flags that can produce faster, albeit potentially unstable code.
If you were asking this question because you wanted some hints of what else to add to your make.conf, then I would suggest adding -pipe to your CFLAGS. -pipe will speed up compilation time with no risk to stability, because it causes the compiler to use UNIX pipes to communicate between processes rather than temporary files. I have also had a VERY stable system by using -O3 rather than -O2. -funroll-loops is also a flag you could try (which I have had no issues with in the past). what it does is unroll simple loops in the code, making the resulting compiled code a bit larger, and it may or may not increase speed in the code. |
|
Back to top |
|
|
tommy_haaland Guru
Joined: 04 Oct 2003 Posts: 320
|
Posted: Tue Mar 22, 2005 10:34 pm Post subject: |
|
|
Thanks |
|
Back to top |
|
|
avieth Veteran
Joined: 17 Sep 2004 Posts: 1945 Location: Canada
|
Posted: Wed Mar 23, 2005 3:12 am Post subject: |
|
|
I'm still really confused about everything in the make.conf except the use flags. Is there some soft of guide out there that can tell me everything about make.conf and its options? |
|
Back to top |
|
|
hensan l33t
Joined: 26 Jun 2003 Posts: 868 Location: Sweden
|
Posted: Wed Mar 23, 2005 2:22 pm Post subject: |
|
|
@tommy: I would add -arts to the USE flags as well if you are not going to use KDE.
@avieth: Read man make.conf, and look in make.conf.example. That should give you a pretty complete picture of that file. |
|
Back to top |
|
|
|