Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Does my /etc/make.conf seem correct ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
tommy_haaland
Guru
Guru


Joined: 04 Oct 2003
Posts: 320

PostPosted: Tue Mar 22, 2005 8:49 pm    Post subject: Does my /etc/make.conf seem correct ? Reply with quote

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
View user's profile Send private message
oiper
Guru
Guru


Joined: 01 May 2003
Posts: 316
Location: Alabama, US

PostPosted: Tue Mar 22, 2005 9:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
psychomunky
Guru
Guru


Joined: 02 Nov 2004
Posts: 337
Location: Canada

PostPosted: Tue Mar 22, 2005 9:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
tommy_haaland
Guru
Guru


Joined: 04 Oct 2003
Posts: 320

PostPosted: Tue Mar 22, 2005 10:34 pm    Post subject: Reply with quote

Thanks :-)
Back to top
View user's profile Send private message
avieth
Veteran
Veteran


Joined: 17 Sep 2004
Posts: 1945
Location: Canada

PostPosted: Wed Mar 23, 2005 3:12 am    Post subject: Reply with quote

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
View user's profile Send private message
hensan
l33t
l33t


Joined: 26 Jun 2003
Posts: 868
Location: Sweden

PostPosted: Wed Mar 23, 2005 2:22 pm    Post subject: Reply with quote

@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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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